Skip to main content

I'm able to insert bundled products and the respective quote lines on an Apex test class.

But, when I try to clone those lines on a new cloned quote, an error is always thrown:

"System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, SBQQ.QuoteLineAfter: execution of AfterInsert

caused by: System.NullPointerException: Attempt to de-reference a null object"

 

Does anyone has a clue for the why QuoteLineAfter trigger fails due to a null de-reference in this scenario?

The Apex class works for clone quotes through the UI.

 

@Salesforce CPQ 

@* Salesforce Revenue Cloud * 

7 respuestas