Inserting an Opportunity Line Item Split via a synchronous after-save flow, after-insert trigger, or after-update trigger on Opportunity Line Item can interrupt the Salesforce backend rollup calculation process, causing a save error.
This is a common issue when custom automation on Opportunity Line Item runs in the same transaction as the platform's Opportunity Split rollup calculations, and it typically surfaces as a FIELD_INTEGRITY_EXCEPTION error.
This article explains why inserting or updating Opportunity Line Item Splits from synchronous automation can cause a FIELD_INTEGRITY_EXCEPTION error, and how to resolve it.
Salesforce recalculates Opportunity Split rollups in the same transaction as the Opportunity Line Item Split insert or update. When a synchronous after-save flow, after-insert trigger, or after-update trigger on Opportunity Line Item runs at the same time, it can interrupt this backend rollup calculation process, causing a FIELD_INTEGRITY_EXCEPTION error.
Change the Opportunity Line Item after-save synchronous flow, after-insert trigger, or after-update trigger that causes the error to an asynchronous after-save flow. This lets the rollup calculation complete before your custom automation acts on the record, avoiding the conflict.
For example, if you have an after-insert Apex trigger on OpportunityLineItem that immediately inserts an OpportunitySplit record, this can trigger the error because both operations compete for the same Opportunity rollup calculation. Converting the trigger logic to run through an asynchronous after-save flow resolves the conflict.
004691775

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.