function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kelsey BaustianKelsey Baustian 

apex cpu time limit exceeded on data load

Hello, I'm trying to create about 400 Opportunity Line Item records on 400 Opportunities via Data Loader and I keep getting this error message:

dlrs_OpportunityLineItemTrigger: System.LimitException: Apex CPU Time Limit Exceeded

I'm an admin and a contractor we worked with before I joined would have written this code. I found the trigger and the class but don't know if there's a way to bypass it to run this data load? Any help would be greatly appreciated. 
AbhishekAbhishek (Salesforce Developers) 
Try this,

https://salesforceben.com/what-is-apex-cpu-time-limit-exceeded-how-do-you-solve-it/

https://help.salesforce.com/articleView?id=000339361&type=1&mode=1


If it helps you and closes your query by marking it as solved so that it can help others in the future.

Thanks.
sachinarorasfsachinarorasf
Hi Kelsey,
Here is the URL you can go through it::
https://trailblazers.salesforce.com/answers?id=9063A000000lPkCQAU
https://www.forcetalks.com/salesforce-topic/apex-cpu-time-limit-exceeded-while-updating-through-data-loader/

I hope you find the above solution helpful. If it does, please mark it as the Best Answer to help others too.

Thanks and Regards,

Sachin Arora

www.sachinsf.com (http://www.sachinsf.com" style="text-decoration:none)