Troubleshooting
Summarize
Summary of Troubleshooting CPQ Issues
This guide helps ServiceNow customers troubleshoot common issues encountered in Configure, Price, Quote (CPQ) environments, particularly when integrated with Salesforce or used in a headless setup. It addresses error messages, admin visibility concerns, API authentication errors, configuration access problems, and Salesforce integration challenges.
Show less
Error Messages
The generic message "An error occurred. Please contact your administrator." typically indicates an unhandled edge case during configuration. Administrators should review the detailed logs in the CPQ Admin Logs tab to identify the error source such as rules, enrichments, or external connections. If the logs do not clarify the issue, customers are advised to submit a support ticket via the ServiceNow Support portal.
Admin Visibility
The Products tab in Admin view only appears when CPQ is set for a headless use case, where CPQ acts as its own product master, commonly in eCommerce or partner portal scenarios. In Salesforce-integrated environments, the Salesforce Product2 object serves as the product master, so the Products Admin page is intentionally hidden.
API Authentication Issues
- If Salesforce authentication calls return a 400 Bad Request, check the connected app’s OAuth policies in Salesforce Setup and set IP Relaxation to "Relax IP restrictions."
- When using JWT for admin API authentication, ensure the Authorization header includes the prefix "Bearer" before the access token to avoid 302 Found errors with no response body.
Configuration Access Requirements
Users experiencing blank screens or missing previous selections during configuration likely lack necessary Salesforce permissions. Assign proper read/edit access to relevant objects and fields such as Configuration Attributes, Product Features, Products (Product2), Quote Lines, and Product Options. For amendment use cases, additional fields like Committed and Action Context must also have access granted. These permissions can be managed via permission sets or profile settings.
Salesforce Integration and Quote Line Creation
To ensure products configured in CPQ create quote lines in Salesforce CPQ, confirm the following:
- The Product Id in CPQ matches the configured "Product Id Field" tenant setting (Product Code, Partner Id, or External Id).
- The product record is active in Salesforce.
- The product has an active pricebook entry assigned.
- The pricebook entry’s pricebook matches the quote's pricebook.
If all conditions are met but quote lines still do not appear, the issue may be a delay in product synchronization between CPQ and Salesforce. Sync occurs via API every 15 minutes in production or every 30 minutes in test/demo environments. Check the last sync time under Setup → Bulk Data Load Jobs in Salesforce.
Steps to take if you encounter problems using CPQ.
Error messages
- An error occurred. Please contact your administrator.
This generic error message appears for every error logged when configuring. This usually points to an edge case that was not previously considered when building the Blueprint and can be rectified by looking into the results of the Logs tab in CPQ Admin when this error occurs. A more detailed response will usually be present that should point your administrator to the location of the error, such as a rule, enrichment, or an external connection.
If there is no further detail located in the Admin log, or if you are still confused by the messaging of the error, please log a support ticket.
Note:To log a support ticket, use the ServiceNow Support portal. For step-by-step instructions, see Create a case on Now Support for CPQ Customers. - Cannot get Configurable Product. Product <Salesforce Product2 Id> is not available in cache.
The CPQ user that was added when your environment was being set up in your Salesforce org may have been deactivated, causing an issue with the Refresh Token Username and Refresh Token.
Admin
The Products tab is not visible in Admin view.
The Products Admin page is only shown when CPQ is set up to support a headless use case. In this scenario, CPQ provides its own product master.
In a Salesforce-integrated use case, the CPQ environment is integrated with a Salesforce [SFDC] environment. In a headless or eCommerce use case, CPQ is accessed from a resource other than SFDC, such as an eCommerce platform, partner portal, or a non-SFDC CPQ application. In this scenario, the CPQ environment is frequently accessed via APIs only, with the calling resource digesting the results and displaying them in its own user interface.
When a CPQ environment is not integrated with Salesforce, this is commonly called a 'headless' or 'ecommerce' use case. The Products Admin page only displays to CPQ administrators when the environment is set up for this headless mode.
As a point of contrast, when the CPQ environment is integrated with SFDC, the SFDC product2 object is the part master. CPQ administration intentionally does not show a Products administration page when integrated with SFDC.
APIs
- The Salesforce Authentication call is returning a Status: 400 Bad Request
Inspect the permissions of this OAuth App, as defined in Salesforce, by navigating to App Manager in Salesforce Setup. For your connected app, select "Manage" from the drop-down menu on the right, and then click Review OAuth Policies. The IP Relaxation setting may be set to Enforce IP restrictions. Set this to Relax IP restrictions.
- When using the JWT to authenticate the administration API call, you get a 302 Found error with no body.
Make sure that you insert the string, "Bearer" before the JWT access_token text in the Authorization value.
Configuration
For some user profiles, configuring results in a white screen or reconfiguring does not load any of the previously chosen options. In order to properly configure or reconfigure,
users need access to certain objects and fields in Salesforce. These can be assigned using permission sets or by going to Setup > Profiles > Select Desired Profile > Object Settings.
Users will need read/edit access in the Field Permissions section to the following objects:
Configuration Attributes:
- Id
- Name
- Target Field
- Product
- Raw Order
- Column Order
- Position
Product features:
- Id
- Name
- Option Selection Method
- Configured SKU
- Number
- Min Options
For products (Product2):
- Configuration Type
- Has Configuration Attributes
- Externally Configurable
For quote lines:
- Configuration Id
- BOM Data
- Product
- Incomplete
- Dynamic Option ID
- Quantity
- List Unit Price
- Option Level
For product options:
- Read/Edit access in Object Permissions
- Configuration Id
- BOM Data
And if using Amendments, users also need the following:
Quote lines:
- Committed Configuration Id
- Action context
- Upgraded subscription
- Source
Subscriptions (SBQQ__Subscription__c):
- Configuration Id
- BOM Data
Salesforce integration
- Products in CPQ do not create quote lines in Salesforce CPQWhen using CPQ with Salesforce CPQ, certain configuration requirements must be met in order for your products to get added to CPQ as quote lines. Here are the most common causes for products not creating quote lines in CPQ.
- The Product Id in CPQ is not equal to the Product Code field on the product record in Salesforce.
This is contingent upon the “Product Id Field” tenant setting in the Admin. You can use either Product Code (Product2.ProductCode), Partner Id (Product2.Id), or External Id (Product2.ExternalId).
- The product record is not active in Salesforce.
- No pricebook entry has been assigned to the product record.
- The pricebook entry for the pricebook is different from the pricebook on the quote. The pricebook entry for the product is inactive.
If you have confirmed none of these are true and a quote line is still not being created, then it is probable that the product sync that takes place between CPQ and Salesforce via the refresh token user has not occurred yet. This sync occurs via API every 30 minutes for test and demo environments and every 15 minutes for production. To determine when this sync last occurred, enter Salesforce and navigate to Setup → Bulk Data Load Jobs.
- The Product Id in CPQ is not equal to the Product Code field on the product record in Salesforce.