Start a conversation

Discount Save Fails When Line Item Attributes Have No Price Set

Symptom

When attempting to save discounts via the Negotiate Price function in Deal Management, the save operation fails silently or with an error. The discount values cannot be persisted.

Cause

One or more line item attributes on the Product Configurations in the basket do not have their Price value set. The Discount Page Visualforce page calculates discount amounts using the line item Price values. When any line item has a null or missing Price, the arithmetic calculation produces null, which causes the save operation to fail.

Resolution

Step 1: Identify PCs with missing prices

Open the Deal Management view for the affected basket and check each Product Configuration's line items. Look for any line item where the Price value is blank or zero when it should have a value.

Step 2: Set the correct prices

For each line item with a missing Price, set the correct price value. This can be done either:
- Via the Solution Console by editing the product configuration
- Via Data Loader/Workbench by updating the attribute values directly

Step 3: Verify all PCs have prices set

Ensure all Product Configurations in the basket have valid Price values on all their line item attributes before attempting to save discounts again.

Step 4: Retry saving discounts

Return to Deal Management, apply the discount values, and save. The operation should now complete successfully.

Additional Notes

  • This issue can occur when baskets are created programmatically (via Apex) without going through the standard Solution Console flow that normally populates pricing attributes
  • If the basket has multiple PCs (e.g., a solution with child services), all PCs must have valid prices -- not just the one being discounted
  • Check both NRC (Non-Recurring Charge) and RC (Recurring Charge) attributes, as both may need Price values
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments