+ 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.
SRajesh8SRajesh8

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.

SRajesh8SRajesh8

Hi

 

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

 

Regards,

Rajesh.