Happy Business Starts Here

Highlighted
Zuora Support

"Attempt to de reference null object" error when trying to send quote to Zuora

When trying to send quote to Zuora, getting the below error

"Attempt to dereference null object"






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Support

Re: "Attempt to de reference null object" error when trying to send quote to Zuora

On reviewing the debug logs, error was thrown from below stack trace

 

Class.zqu.OrderActionBuilderFactory.CreateSubscriptionOrderActionBuilder.createInitialTerm: line 302, column 1
Class.zqu.OrderActionBuilderFactory.CreateSubscriptionOrderActionBuilder.createSubscriptionTerm: line 291, column 1

Managed package code at line 302 is initialTerm.termType = quoteInfo.Subscription_Term_Type__c.toUpperCase();

 

Further running the below query, it was identified the Subscription term type is null

select zqu__Subscription_Term_Type__c,    zqu__InitialTerm__c from zqu__Quote__c where id='<<Id of quote>>'

 

Error is resolved once the Term type is selected


 






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √