Troubleshooting

Ensure that you have followed Post Upgrade Steps.

Following are some of the troubleshooting scenarios.

Run the VALIDATION FOR DATA INTEGRITY tool before before initiating the Standard Cart API's Generate Compiled Data job. This helps in identifying and resolving common data setup issues and ensures that data compilation process is smooth and efficient.

  1. From the App Launcher, find and select Vlocity CMT Administration.
  2. Click Validate Data Setup for Standard Cart API.
  3. Click Start to run the VALIDATION FOR DATA INTEGRITY tool. Diagnostic Tool
  4. Diagnostic tool identifies the issues and displays the results. Sample diagnostic details are as follows. Diagnostic Details

The Generate EPC Compile Data Job fails with the following error. EPC Jobs
Perform the following steps to fix the issue.

  1. From the App Launcher, find and select Vlocity CMT Administration.
  2. Click CPQ Configuration Setup. CPQ Config
  3. Search for ConfigurationSnapshotLock and set its value as False. Click Save. Start the Generate EPC Compile Data Job again.
    Snapshot Lock

The Generate EPC Compile Data Job fails at the Compile Product Hierarchy step. To see the detailed error message:

  1. Click More Details.
  2. Navigate to the related tab on Async Process page. Select Compiled Product Hierarchy from Async Process Steps related list.
  3. Navigate to related tab on Async Process Step page. In the Async Process Jobs related list find and select the job which failed. You will see the below error in the Technical Message section: Execute Process

Perform the following steps to fix the issue.

  1. From the App Launcher, find and select Vlocity CMT Administration.
  2. Click Upgrade Jobs. Upgrade Jobs
  3. Execute the Populate PriceBookEntry in PriceListEntry records job. Start the Generate EPC Compile Data Job. Price Book

This job populates PriceBookEntryId__c field on the PriceListEntry__c. This job assumes that for every combination of PriceBook Id and Product Id, there is a PriceBookEntry__c record exists. If PriceBookEntry__c entry is missing, then it creates one and assigns the pricebook Id in appropriate PriceBookEntryId__c field of the PriceListEntry__c. In case of multi-currency environment the job associates PriceBookEntry__c and PriceListEntry__c based on the currencyIsoCode.

The CMTAdminController invokes the actual job with 2000 records per batch. In case of large PriceListEntry records, you might face Batchable instance is too big error. This happens because PopulatePriceBookEntryIdInPLEJob class implements Database.Stateful and short of heap size issue can occur. Database Stateful To overcome this issue, run the job manually from the developer console. Currently, 2000 records run per batch that needs to be increased. This is the sample code with 5000 records.