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
pooja biswaspooja biswas 

too many callouts 101 in apex code

Hi
I have a batch apex which performs a callout , I have given database.allowcallouts=true and database.stateful
My batch size=200 
I am still getting the error.
In query I have checked for NULLS , indexed where clause filters 
please let me know why I get this error:?

Thanks
Pooja
FearNoneFearNone
hi pooja,

batch size should be maximum of 100...
batch size=100
pooja biswaspooja biswas
Hi even then I am getting error
so is there an issue with soql query?

Pooja
FearNoneFearNone
if you can post your code, we can check your query. but the error states that your batch queried more than 100 times.
Suraj Tripathi 47Suraj Tripathi 47
Hi Pooja,

You are using batch size=200. It should be a maximum of 100.
So In place of batch size=200, You have to use batch size=100.

If you find your Solution then mark this as the best answer. 

Thank you!

Regards 
Suraj Tripathi