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
Dev87Dev87 

Error Visualforce page Too many SOQL queries: 101

Hello, 
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: https://help.salesforce.com/articleView?id=000181404&type=1

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

Thanks,
Manish Choudhari
14x Certified Salesforce Architect
Certification link:
http://certification.salesforce.com/certification-detail-print?conId=003G000002gRrrEIAS
My Blog: http://sfdcfacts.com/
Youtube Channel: https://www.youtube.com/SFDCFacts
LinkedIn: https://www.linkedin.com/in/manish-choudhary/
Trailhead: https://trailhead.salesforce.com/en/me/manish-choudhari
Twitter: https://mobile.twitter.com/manish_sfdc
Steven NsubugaSteven Nsubuga
There is a very high chance that the Apex Controller of your Visualforce page has a SOQL query inside a loop.