"Apex CPU time limit exceeded" occurs in Data Mappers if the transaction exceeds the governor limits. Governor Limits will get hit because of the amount of time processing done. There is not a guarantee that "X" number records will be able to be processed under the CPU Governor limit.
When configuring a LIMIT filter setting under the Data Mapper, the maximum number of records returned within the allowed values from 1 to 2000, there is NOT a guarantee that the limit amount of records will be able to be processed under the specified limit. Utilizing a LIMIT of 2000 would ensure that the Data Mapper would not hit the governor limit, however, there will be some scenarios where the Data Mapper can process above 2000 records before hitting the Governor Limit error. The 2000 limit is a "safe" limit.
The CPU Governor limitation is the amount of CPU time required to retrieve records. The CPU Time is affected by number of fields, number of records, query parameters, etc. This is not specifically to a limit on the number of records, but rather the amount of time spent processing any set of records.
Refer to the following Best Practices and Guidance articles to help resolve "Apex CPU time limit exceeded" in Data Mapper:
| OFFSET | https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_offset.htm |
| Workaround for offset 2000 limit on SOQL query | https://help.salesforce.com/s/articleView?id=000339353&type=1 |
|
'Apex CPU Time Limit Exceeded' error in Salesforce CPQ | https://help.salesforce.com/s/articleView?id=000383156&type=1 |
| Code more efficiently to avoid 'Apex CPU time limit exceeded | https://help.salesforce.com/s/articleView?id=000339361&type=1 |
000390580

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.