FIELD_INTEGRITY_EXCEPTION, field integrity exception: TotalPrice (total price must be specified): [TotalPrice]

To avoid this issue, kindly make sure the below for OpportunityLineItem(Opportunity Product) recoreds:

1. We cannot set both TotalPrice and UnitPrice to null in the same Insert, update and Upsert call.

2. UnitPrice field or TotalPrice is required. You cannot specify both.

3. If you specify Discount and Quantity, UnitPrice field or TotalPrice is required.

4. TotalPrice field cannot be null if UnitPrice field is null.

Cheers!!!

No comments:

Post a Comment