Loading
Salesforce Help 사이트 “Help Agent powered by Fin” 도입 안내더 많이 읽기
Tableau 고객 대상: Tableau를 이용하는 고객이 Help 사이트에서 사례(케이스)를 등록할 수 없는 경우의 대체 수단더 많이 읽기
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

Resolving FIELD_INTEGRITY_EXCEPTION Error on Opportunity Split Insert via Apex or API

게시 일자: Aug 18, 2026
상세 설명

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.

Cause

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.

Solution

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.

Example

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.

Knowledge 기사 번호

004691775

 
로드 중
Salesforce Help | Article