Skip to main content
Hi Everyone,

 

I have created a Formula field 'Total Before Other Discount (Formula --PriceafterSingleServerDiscount__c * Quantity_on_Proposal__c * SBQQ__ProrateMultiplier__c)' in Quote Line Object and added it into a field set which is throwing this error : Attempt to de-reference NULL Object while adding Products.

 

I am trying to change the calculation and below is the Current Vs Expected Implementation. 

 

Attempt to de-reference NULL Object on Quote Line EditorThese are the Price Actions written for Price Rule 'Set Prices based on all Discount'

 

User-added image

 

I want to implement this asap if anyone could help me by explaining the detailed steps to me that would be helpful. 

 

Thanks in advance!

 

 
2 answers
  1. Jul 11, 2020, 4:23 AM
    Hi Shraddha,

     

    I'm not entirely sure where you are finding the null pointer exception. But, I would recommend you to check values of all the fields included in the formula field. If possible, set default values of these fields as 0 (if integer). This will set the vaue of that particular field as 0 (and not NULL) and consider the same during the calculation (of course if no value is provided explicitely).

     

    Hope this helps!

     

    Thanks!
0/9000