Salesforce CPQ – “No field called __________”

SBQQ.FormulaFieldUtils.NullFieldCRFException: Error: No field called DemoFormula__c exists on the SBQQ__QuoteLine__c object.

Salesforce CPQ Quote Line Editor – often

Scenario

Quick one here, but hopefully this can save some pain for CPQ users out there. The scenario is as follows:

  1. Everything is going great with CPQ QLE
  2. As a responsible admin or developer, you delete a field from the Quote Line object as it is no longer needed.
    1. Note that this field at one point was referenced in CPQ relevant records, such as a Price Condition or Price Action.
  3. Of course the field is also no longer referenced in Price Rules, Product Rules, QCP, Apex, etc. as you have removed these references prior to deleting the field.
  4. Into the QLE you go, only to hit a red toast message on load:
Friendly Error Message
  • In logs, this value will be shown:
    1. SBQQ.FormulaFieldUtils.NullFieldCRFException: Error: No field called DemoFormula__c exists on the SBQQ__QuoteLine__c object.

Why is this happening to me?? And what do I do??


Solution

Easy enough actually. Once you’ve deleted the field and its references, you need to go back into the Salesforce CPQ managed package and re-run the Post-Install Scripts. This will remove any cached reference to the field that no longer exists, and thus will cause the error to go away.

Re-run Scripts
Good to Go

Wrapping Up

Thanks for reading, and let me know if this saves you any grief.

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *