Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to resolve - FIELD_INTEGRITY_EXCEPTION:field integrity exception: TotalPrice (total price must be specified):TotalPrice

Asked by David Edmunds Feb 28, 2023 2.4K views 2 answers
Share

About this question

 I'm getting the following exception while updating a custom field on Opportunity Product. FIELD_INTEGRITY_EXCEPTION:field integrity exception: TotalPrice (total price must be specified):TotalPrice


Details: custom_field__c is a checkbox field.

From the UI when custom_field__c value is made to true this field integrity exception is thrown. But when i try to update custom_field__c from developer console it is saved without any exception.


TotalPrice, UnitPrice, SalesPrice and Quantity values are already present on the record.


I would like to do a mass update for custom_field__c on Opportunity Products. Any kind of help is appreciated.

Your answer

2 Answers

Ranjana Admin JanBask Expert Latest answer

Answered on Jun 24, 2024

To resolve the FIELD_INTEGRITY_EXCEPTION: Field Integrity Exception: TotalPrice (Total Price Must Be Specified): TotalPrice error, follow these steps:

  1. Specify the TotalPrice: Ensure that the TotalPrice field is populated with a valid value when creating or updating the record.
  2. Check Field Permissions: Verify that you have the necessary permissions to set the TotalPrice field.
  3. Validation Rules: Review any validation rules that might be enforcing the requirement for the TotalPrice field.

By ensuring the TotalPrice field is correctly populated, the error should be resolved.








Was this helpful?

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.