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
amit mittalamit mittal 

System exception : Too many script statements

hi friends,
1)I am writing Apex classes for parsing the content of the csv file . But at the time of execution I am getting this error
System Exception : Too many Script Statements
As csv contains more than 254 fields and around 200 rows . I think I am getting this Exception . So can u pls help on this .
 
2)Even this exception is not caught by try ang catch block . Is there any way to catch this exception if it generates while execution . pls suggest any solutions if you have.
soofsoof

Hey Amit,

Seems like you're running into issues with execution governors and limits.  The total number of script statements allowed in a single execution is 10,000.  For a Web Service call though, the limit is 200,000 statements.  So you might need to look at tuning the code in order to reduce the number of statements.  I hope this helps.

Thanks.

vabvab

hi amit,

 

we are also doing the same thing i.e. parsing the csv file apex class.

 

can you please share your valuable csv parser code with me.

 

Please put your code in the same thread.

 

Thanks in advance

ScorpionKingScorpionKing
this is a very old thread , please try putting one new topic in forum , so u might get what u are looking for...

thnx