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
hmoh1920hmoh1920 

Lot Apex Terminé First error: Too many SOQL queries: 201

Hi,

i have add an apex batch to clone many opportunity and product, i have this erreur "  Lot Apex    Terminé    First error: Too many SOQL queries: 201 "

it is possible to force nombre of request according !

 

it is the type of license that I limit the number of request?

 

thanks for your answer

 

 

 

 

 

cordially

 Moh.
Rajesh SriramuluRajesh Sriramulu

Hi

 

It is Apex Govenor Limit that should not exceed more than 200 for batch.

 

http://boards.developerforce.com/t5/General-Development/Too-many-SOQL-queries-201-a-mystery/td-p/154135

 

Hope this link will helps u.

 

Regards,

Rajesh.

hmoh1920hmoh1920

Hi,

 

I have many query, is the error is due of the execution of triggers when the batch is executed!

is there a way to disable the triggers before  execution of the batch and subsequently activated at the end?

 

 

thanks.

Rajesh SriramuluRajesh Sriramulu

Hi

 

There should be a query within the for loop that might be running no. of times try to avoid that one.

 

Regards,

Rajesh.