Loading

Troubleshoot Errors During or After Upgrading Salesforce CPQ

Udgivelsesdato: Jul 2, 2025
Beskrivelse

When executing the Post Install Scripts in Salesforce CPQ or when the CPQ package is installed or upgraded, the admin may receive a Post Install Script Failure email with the following message:


The Salesforce CPQ package installed correctly but the post-install script failed. Please review the error messages, make the necessary adjustments and go to our Configuration/Additional Settings tab. Click Execute to run the post-install process.


Please see the examples below to troubleshoot and resolve your post install script errors.

Løsning

Permissions

Follow the steps listed below to ensure that no permission errors occur when installing Salesforce CPQ or running Salesforce CPQ Post Install Scripts

  1. Enable email deliverability to all users
  2. Enable Chatter
  3. Enable Orders
    • If Orders are not enabled, you'll receive an error message containing the word "Orders". The error message will be lengthy and look something like this: Error Message: 00D0k0000000Z1b: Multiple install problems encountered [Asset.OrderProduct__c: referenceTo value of 'OrderItem' does not resolve to a valid sObject type
  4. Enable CRM content
  5. During installation, Grant access to all users (Salesforce CPQ best practices recommend selecting this option. Selecting other options can lead to extensive time spent adjusting permissions later.)

 

Calculation Authorization Error

If you're getting the error, 'line 77, column 1: Calculation authorization has expired and requires action by an administrator. Go to Installed Packages > Manage > Salesforce CPQ > Pricing and Calculation tab and reauthorize the new calculation service.' when trying to upgrade or install Salesforce CPQ, you need to reauthorize the calculation service.

Log in as an authorized user.

  1. Go to Settings.
  2. Under "Personal Information," click Advanced User Details.
  3. Scroll to the "OAuth connected Apps" related list, click Revoke for Steelbrick CPQ. 

Reauthorize the calculation service through CPQ package settings.

  1. Go to Setup.
  2. Search for Installed Packages.
  3. Configure Salesforce CPQ.
  4. Click Pricing and Calculation.
  5. Click Authorize new calculation service.

Quote calculations should function and the post install script should successfully run after re-authorizing the calculation service. See this article on Best Practices when Authorizing the New Calculation Service for additional information.


Unmanaged Custom Object Tab Already Exists

When attempting to install a newer version of Salesforce CPQ, the install is failing with an error message: "(<object name>__c) Unmanaged custom object tab already exists, package upgrade cannot create another tab."

To allow the new version of the Salesforce CPQ package to install, an admin must delete or rename the existing tab that is conflicting with the new tab the package is attempting to create.

This can be done by navigating through Setup to the org Tabs settings (Setup > Create > Tabs). Find the tab corresponding to the object name in the error message. If the tab is an old managed package tab, it must be deleted. If it is a custom object tab with the same API name (without namespace), the object can be renamed or the tab can be deleted.

Once the tab has been edited or removed, you should attempt to re-install the new version of the package. It will no longer encounter the same tab error.
 

Custom Validation Errors (Upgrade)

During post install script execution, custom validations and logic are not disabled in order to prevent invalid data. If you have records failing validation during the execution of Salesforce CPQ post-install scripts, you may see an error ‘FIELD_CUSTOM_VALIDATION_EXCEPTION: Custom validation error!’, if you see this error please consider the following solutions:

  1. Correct the invalid data
    • Best practice is to maintain valid data in your Salesforce org. Ensuring that all data in the org is valid is the best way to make certain that post-install scripts will not fail due to validations or logic.
  2. Add exemptions into the validations or logic.
    • Logic or validations can be made to be more selective with the records they apply to. If the desire is to exclude old "invalid" data, it would be necessary to make these records exempt from validation based on a status such as a Created Date or Status field.

 

'REQUIRED_FIELD_MISSING' (Upgrade)

During post install script execution, you may see the error appear in your post install script failure 'Insert failed. First exception on row 25; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Object Name]: [Object Name]'

This error may be thrown if you have Product Action records in the organization that have a Value Field (SBQQ__ValueField__c) defined with no Value Object(SBQQ__ValueObject__c) defined. Ensure that the Product Action's Value Field is NULL if there is no Value Object defined, and re-run the post-install scripts.
 

Maximum Depth of Master-Detail Relationship (Upgrade)

Upgrading to the most recent release will fail if the Quote's SBQQ__Opportunity__c master-detail field still exists. The error at the root of the failure states "common.exception.SfdcSqlException: ORA-20127: maximum depth of master-detail relationship exceeded."

In Salesforce CPQ Spring '19 a new object called QuoteLineConsumptionSchedule__c was introduced with a master detail relationship to QuoteLine__c. Quote Line's have a master detail relationship to Quotes and if the Quote's deprecated Opportunity master detail relationship field, SBQQ__Opportunity__c, still exists the master-detail relationship between Opportunity.Quote__c.QuoteLine__c.QuoteLineConsumptionSchedule__c exceeds the maximum depth allowed by Salesforce. 

In Salesforce CPQ Summer '15 version 24.x, the SBQQ__Opportunity__c field was deprecated on Salesforce CPQ's Quote object. You should instead use the Quote's Opportunity lookup field, SBQQ__Opportunity2__c, to maintain the relationship between Quotes and Opportunities. Both SBQQ__Opportunity__c and SBQQ__Opportunity2__c should share the same values. Please see the following article for more information on how to Delete the Quote's Opportunity Master Detail Relationship Field
 

​​​​​​Entity 'ConsumptionSchedule' is not Found

In some cases, installing Salesforce CPQ in an org can fail with this error:

"(ConsumptionSchedule.Category__c) Entity not available, Details: The Entity 'ConsumptionSchedule' is not found."

The error occurs because the org doesn’t have the CPQ license provisioned to it. 


Production 

  • Log a case with CPQ Support
  • Once completed - install Salesforce CPQ again

Sandbox

Resolve the error by updating the licensing information in your Sandbox. Use one of these two methods to update your Sandbox org.

  1. Refresh Your Sandbox
  2. Match Production Licenses to Sandbox without a Refresh

After refreshing your sandbox or matching production licenses, try installing Salesforce CPQ again. 

 

Installing Service Cloud for Salesforce CPQ

You receive the following errors while installing Service Cloud for Salesforce CPQ

  • ContractLineItemConsumptionSchedule__c.ContractLineItem__c) referenceTo value of 'ContractLineItem' does not resolve to a valid sObject type
  • (Asset.CurrentContractLineItem__c) referenceTo value of 'ContractLineItem' does not resolve to a valid sObject type

Resolution is to enable Entitlements in your org

  • Setup > Entitlements > Enablement Settings > Enable Entitlement Management
  • (re)Install Service Cloud for Salesforce CPQ

 

NOTE: Rerun your post-install scripts if they initially fail. Post-install scripts only initialize package-managed fields that were installed. If your post-install scripts continue to fail, please get in contact with the customer support team.

Vidensartikelnummer

000381759

 
Indlæser
Salesforce Help | Article