Loading

Test classes fail in Salesforce CPQ

게시 일자: Sep 27, 2025
상세 설명
If a test class is failing with an error message containing the SBQQ namespace, the best recommendation is to go through the entire process that you're trying to mimic from start to finish in the UI. Ensure that every step of the process and every record that you touch is covered in the test class code.
솔루션

Commonly Missed Steps

  • When creating a new product and using it in quotes, Pricebook Entries must be created for that product.
  • Opportunities and Primary Quotes must have a Pricebook associated with them for Opportunity Product sync to occur.
  • Required Quote Line fields: SBQQ__Product__c, SBQQ__Quantity__c, and SBQQ__Quote__c
  • When creating bundles, you must insert the bundle parent Quote Lines before you are able to link them to the child Quote Lines. The child Quote Lines are linked to the parent Quote Lines via the SBQQ__RequiredBy__c field on the child Quote Line record. Populating the SBQQ__ProductOption__c field will not automatically attach child lines to a parent bundle because it is possible for there to be multiple occurrences of a bundle within a single Quote.
  • When using the Orders to generate Contracts, you must activate individual Order Products in addition to activating the Order.
Knowledge 기사 번호

000383151

 
로드 중
Salesforce Help | Article