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
sdavidow9sdavidow9 

Too many callouts: 1 (with Batch APEX)

I've seen the messages about too many callouts: 11, and too many callouts: 2 (in batch), but I'm getting too many callouts: 1 with batch.

 

I have a process that will collect all "Orders" that need to be sent to SAP (through XI using custom callouts).  I ran into the 10 callout governor limit right away, so I am passing those Orders or setting them up in batches of 1 and trying to make 1 callout, but get this error.

 

Anyone?  Anyone?  Going to log a ticket, but figured I'd see if anyone came accross it.

Best Answer chosen by Admin (Salesforce Developers) 
gm_sfdc_powerdegm_sfdc_powerde
Just making sure this is not an issue - did you make your Batchable class implement Database.AllowsCallouts?

All Answers

gm_sfdc_powerdegm_sfdc_powerde
Just making sure this is not an issue - did you make your Batchable class implement Database.AllowsCallouts?
This was selected as the best answer
sdavidow9sdavidow9

Can I just get your email, phone or IM and skip the middle ground of using boards?

Thanks!!!

 

That was it.