<turbo-stream action="update" target="wiki_card"><template>
<h1>E2120 - Too Many Future Calls</h1>
<p>When you are seeing this error:&nbsp;<br>Error Code: E2120 - ECE_SForceDataError<br>Salesforce Response:Error returned from SFDC on delete:TriggersOnOrderItem: System.LimitException: Too many future calls: 51 statusCode: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY<br>It means that Salesforce has a governor limit that only allows up to 50 @future method calls per transaction. This error means your integration triggered logic in Salesforce (likely an Apex trigger on OrderItem) that tried to make more than 50 future method calls in a single operation.This is a Salesforce platform limit — not an issue with the integration tool or data format.&nbsp;<br><br>How to fix it:<br><br>Step 1: Review and Refactor the Apex Trigger</p><p>- In Salesforce, locate the trigger: TriggersOnOrderItem. Review all @future methods being called and refactor the logic to reduce or consolidate future calls.<br>- Consider replacing @future with:<br>&nbsp; &nbsp;• Queueable Apex (recommended)<br>&nbsp; &nbsp;• Batch Apex<br>&nbsp; &nbsp;• Platform Events<br><br>Step 2: Reduce Batch Size (Integration Side)</p><p>- If you’re sending records in bulk , reduce the number of records per batch.<br>- This ensures fewer records are processed in a single transaction and helps avoid hitting the limit.<br><br><br></p>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='E2120 - Too Many Future Calls' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='E2120 Too Many Future Calls Error Message Salesforce.com' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>E2120 - Too Many Future Calls - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
