In this Article we will discuss a common Error displayed when trying to Merge a Source with too many Lead Sources related to it, or too many Source Costs related to one Source.
See also: How To - Merge Sources using Salesforce Data Loader
Issue:
Attempting to merge Sources, receiving error:
Apex CPU time limit exceeded
Error is in expression '{!deleteSource}' in component <apex:commandButton> in page i360:source_merge: (i360)
An unexpected error has occurred. Your solution provider has been notified. (i360)
Product:
Classic, Enterprise, Supportworks
Category:
Data Loader, Sources
Resolution Steps:
1. Run a report of all the Lead Sources that are attached to the old Source, that need to be merged to the new Source. You will need to include the Lead Source ID, and the Source ID. Export this CSV file.
2. Update the old Source ID in the spreadsheet to the desired, new Source ID.
3. Open Salesforce Data Loader application. Recommendation: Lower the batch size to 20 records.
4. Map to the Lead Source Object, with field mapping for the Lead Source ID and Source ID.
5. Run 'Update' Batch
6. Check original report and old source to ensure all lead sources have been transferred correctly to the new Source.
7. Delete the old Source.
Cause:
System time out due to too many Lead Source records or Source Cost records attached to the Source being Merged and/or Deleted.
See also: How To - Merge Sources using Salesforce Data Loader
For more information about Configuring the Salesforce Data Loader: https://help.salesforce.com/articleView?id=configuring_the_data_loader.htm&type=5