function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YashYash 

System.Exception: Too many SOQL queries: 101

Hi,

I am getting following exception:

System.Exception: Too many SOQL queries: 101

And body as solution for this?


Thanks
Yash



Sam.arjSam.arj
You are executing more than 100 database commands (statements) in one method call (execution process).
This is not allowed by the force platform.

You need to reconsider your code and scale the number statements down.
They do this to control the load you can potentially put on their servers.
Good luck!

kyleRochekyleRoche
You can post the code and we can take a look at how to make it more efficient. 
YashYash
Hi

Thanks for your immd. reply.
I solved the problem.

Thanks
Yash
VFVF

System.Exception: Too many SOQL queries: 101

How can we overcome this issue.Is there any method to overcome this issue:

 

Thanks in advance. 

shaan