You need to sign in to do that
Don't have an account?
KD9500
Triggers, too many soql queries
Hi,
I have created a trigger on a object. Based on a value in a field it would create required records in the second object. I am facing an error if the iteration goes beyond 8. I get a message saying there are too many soql queries.
Is there something that i am overlooking.
Thanks
Krishnadas M R
You probably have your select statements inside a loop somehow, or perhaps are recursing, etc.
Does the second object have triggers as well? If so, are those bulk-safe?
Post the code. -Steve.
All Answers
You probably have your select statements inside a loop somehow, or perhaps are recursing, etc.
Does the second object have triggers as well? If so, are those bulk-safe?
Post the code. -Steve.
Hi Steve,
Thanks for the pointers, yes we had the select statements inside a loop and there were many. We were able to take the unwanted loops out and join the select statements appropriately, now it works properly.
Thanks
Krishnadas M R