You need to sign in to do that
Don't have an account?

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.
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.
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
thnx
Hope this helps....
http://www.tgerm.com/2010/02/apex-script-statements-reduction-tips.html