You need to sign in to do that
Don't have an account?
ckemp
Triggers and "Too many SOQL queries" errors
I have a handful of triggers that execute every time an Opportunity is saved. However, when I save an Opportunity, I'm now getting a "System.Exception: Too many SOQL queries: 21" error. When I check the debug log, it shows that no single trigger is running more than 20 SOQL statements (each are running about 3-4, but there are 6 or 7 triggers). I thought that the 20 SOQL statement limit was per trigger (as indicated in the manual) and this totally makes sense. It does not make sense that it would be a cumulative total over all triggers.
Is there any way around this silly limit?
Is there any way around this silly limit?