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

Error Visualforce page Too many SOQL queries: 101

I have problem when I want to open my visualforce page 

Too many SOQL queries: 101 

Can you help me please.
Manish  ChoudhariManish Choudhari
Hi Dev,

This error comes if there are more than 100 SOQL queries being executed in single transaction. 
You need to bulkify your code and avoid writing SOQL queries within loops.

You can post the code here for me to take a look or you can follow this help article to resolve the issue:

**Please mark this as best answer if this answers your query.**

Manish Choudhari
14x Certified Salesforce Architect
Certification link:
My Blog:
Youtube Channel:
Steven NsubugaSteven Nsubuga
There is a very high chance that the Apex Controller of your Visualforce page has a SOQL query inside a loop.