+ Start a Discussion

Apex Too Many Soql Queries 101 Exception

Hi Everyone!

I am facing the above provided of exception in PROD but not in Sandbox. Initially i thought this might be because of couple of things.

1. Writing Queries inside loop.
2. Record's Data problem.

I thoroughly checked the code and i was not able to see any queries inside the loop.
If i think recurrsion is going on, this has to be done in sandbox also, but the exception is not reproducable in Sandbox.
Could some one help me on this situation, am i missing any thing to crossverify, that will be so great.

Pretty much impossible to say without some visibility of your code. It might be that you are updating related records and in production you have lots of them whereas in the sandbox you have hardly any.