You need to sign in to do that
Don't have an account?
vinita kumari 8
Error: Compile Error: A method was found with too much code.
Hi,
I am getting below error while trying to Save a Trigger.
Error: Compile Error: A method was found with too much code. Please consider splitting methods with a lot of code into mulitiple methods. at line -1 column -1
I have checked all methods line which are good to go with. I have also commented all the methods of the trigger.
But still getting this error when I try to add even a single System.debug('==='); line in the code.
Please help me recticy this issue.
I am getting below error while trying to Save a Trigger.
Error: Compile Error: A method was found with too much code. Please consider splitting methods with a lot of code into mulitiple methods. at line -1 column -1
I have checked all methods line which are good to go with. I have also commented all the methods of the trigger.
But still getting this error when I try to add even a single System.debug('==='); line in the code.
Please help me recticy this issue.
It seems to be syntax error check for well-formed parenthesis or curly braces. At most 1 million characters you can have in your trigger.
Regards,
Nagendra.
Thanks for replying!
I have already checked the character count and for syntax error what can be wrong in adding a system.debug(); line.
May I request you to please post the code snippet or do let us know where exactly you are writing the System.debug method in your code.
Because you can use System.debug statements only in methods of a class.
For example, see below sample code:
Invalid System.debug: Valid System.debug: Hope this helps.
Regards,
Nagendra.