Loading

Industries CPQ Attribute Rules Fail with Null Object Error

Data pubblicazione: Oct 14, 2026
Descrizione

Issue

Attribute Rules in Industries CPQ stop running for a product. The rule doesn't take effect when you configure the product. There may be no error on screen; the failure can show up only in the Apex debug log.

This article applies if you are an admin or product configurator and the rule configuration looks correct, but the rule still doesn't fire.

Root Cause

Industries CPQ attribute rules rely on Attribute Binding records to map product attributes to Salesforce field API names. An attribute binding ties an attribute to a field on the object the attribute binds to (the Object API Name set on the object type).

If an Attribute Binding record exists but its Field API Name is blank or null, the rules engine hits a null object reference at runtime (a NullPointerException in Apex) and can't complete execution. As a result, one or more attribute rules fail, often with the exception visible only in the debug log.

The underlying problem is a corrupt or incomplete Attribute Binding record.

Risoluzione

Before you start: Make these changes in a sandbox first if you can. Before you delete any Attribute Binding record, write down its attribute, object type, and field details so you can re-create it.

  1. Find the attribute bindings for the product. Open the object type the product uses, and review the attribute bindings for the attributes the failing rule references.
  2. Look for blank field API names. Check each Attribute Binding record. If the Field API Name is empty, that record is causing the error.
  3. Delete the incomplete binding. Delete each Attribute Binding record that has a blank Field API Name.
  4. Re-create the binding if you need it. Create a new Attribute Binding record, and enter the API name of a valid field on the bound object (the object set as Object API Name on the object type) in Field API Name.
  5. Verify the fix. Configure the product again, and confirm that the attribute rule runs. Then check the new debug log and confirm that the NullPointerException is gone.

If the rule still doesn't fire:

  • If the NullPointerException is still in the log, check the other attributes and object types the rule uses for more bindings with a blank Field API Name.
  • If the log shows no NullPointerException, the binding isn't the cause. Review the rule's conditions, actions, and setup.
  • If you still can't resolve it, contact Salesforce Support. Include the product name, and the attribute rule name.
Numero articolo Knowledge

000394333

 
Caricamento
Salesforce Help | Article