Loading

Salesforce CPQ error "Required fields are missing: [PricebookEntryId]"

Fecha de publicación: Mar 11, 2025
Descripción

Beginning in Salesforce CPQ Summer '18, a value is required on the quote line field Pricebook Entry ID. After upgrading from a previous version of CPQ, the post install scripts execute and update this field for all quote lines associated with a Primary Quotes. The Pricebook Entry Id field is expected to populate with the ID when the quote calculates and saves. The quote calculation takes List Price from the price book assigned to the quote. If there are missing pricebook entries, users may see the following error:
    Required fields are missing: [PricebookEntryId].

The ordering of quote lines also cannot be sorted if they are missing a value for Pricebook Entry ID. Below are common reasons why quote lines may be missing a value for the Pricebook Entry ID field:

  1. After CPQ Summer '18 upgrade there are Post Install Script failures - Org administrators receive an email with details on the failure
  2. Quote lines may not have been associated to a primary quote when the scripts executed
  3. The quote lines were created outside of standard CPQ functionality and a List Price was set for the quote line.
  4. Records were manually modified after they were created.
  5. Custom automation such as Flows, Apex Triggers, QCP, Price Rules can remove or change the Pricebook Entry Id and alter the expected behavior.
Solución
  1. If you encountered a post-install script failure, please attempt to re-execute the post-install script by navigating to:
    1. Setup | Installed Packages | Salesforce CPQ | Configure | Additional Settings | Execute Scripts
  2. If scripts ran successfully and there are still quote lines missing a Pricebook Entry Id, make sure the quote is marked as primary before executing the post-install scripts again.
  3. Typically, the Pricebook Entry Id field populates once the quote calculates. The quote calculation will take the List Price from the price book assigned to the quote. When creating quote lines externally and you are not using out of the box functionality, do not populate List Price or this will lead to a blank value for Pricebook Entry Id. If you wish to populate List Price manually, make sure that you are also populating the Pricebook Entry Id field with the correct information.
  4. Enable Field Tracking History for the Pricebook Entry Id field on Quote Lines to capture changes.
  5. Review the implementation with your teams and any custom automation that references the Pricebook Entry Id field.
Número del artículo de conocimiento

000384142

 
Cargando
Salesforce Help | Article