Loading
Salesforce Help サイトへ「Help Agent powered by Fin」実装のお知らせ続きを読む
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.

ナレッジ記事番号

004691775

 
読み込み中
Salesforce Help | Article