Skip to main content
Admin Had preguntó en #Integration
Hi,

In case a batch job gets interrupted in the middle of the process (for example due a cut of electricity in the external integration system) will salesforce roll back the transaction and the batch is retriggered again?  

Does SF support transactions?

Thank you in advance,

Brahim

 
1 respuesta
  1. 16 oct 2021, 01:39
    Hello,

    The batch execution will be rolled back and restarted.  From the documentation (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm):

     

    Batch jobs queued before a Salesforce service maintenance downtime remain in the queue. After service downtime ends and when system resources become available, the queued batch jobs are executed.

    If a batch job was running when downtime occurred, the batch execution is rolled back and restarted after the service comes back up.
0/9000