QUESTION:
I am getting the following error when attempting to process an update in DemandTools?
2014-04-03T19:40:31-04:00,,"",,Update,,,,," Message: {MyApexCode}: System.LimitException: Apex CPU time limit exceeded Status code: 13"
ANSWER:
This type of error occurs when some type of custom APEX code (in this example "MyApexCode"), has not been properly optimized for batch processing. This is one of the governor limits that Salesforce imposes on custom APEX code. The exact same error would occur if you tried to update the same groups of records via the Salesforce Data Loader.
There is some information on http://developer.force.com on this and other governor limits. Search for "Apex CPU time limit exceeded" for more information.
Ideally, the code should be updated to handle batch processing to avoid this error. Lowering the "Insert/Update/Delete Batch Size" setting in DemandTools may allow the processing to complete successfully. The default is 100, but this can be set as low as 1. Please keep in mind though, that the smaller the batch size the more API calls will be used per update, and there is a limit imposed by Salesforce on how many API calls are allowed in a 24 hour period.