Happy Business Starts Here

Zuora Support

Error on generating Quote PDF - "Error! Unknown op code for conditional"

Problem - If you are getting an error "Error! Unknown op code for conditional" when generating the quote PDF.






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
Highlighted
Zuora Support

Re: Error on generating Quote PDF - "Error! Unknown op code for conditional"

Requirement – In this specific case, the requirement was that If the field “Hide_Discount__c” is unchecked, display the table's data else hide the table.

 

Solution – In this specific case, customer was using the If condition in the quote template as shown below.

Screen Shot 2019-02-14 at 4.40.06 PM.png

 

If you see the mergefield "SOpportunity.Hide_Discount__c", Although its a checkbox field on the Opportunity object, it returns Yes/No on the Quote PDF instead of True/False and hence here are the changes I did to the template –

  • Changed "False" to "No"
  • Added the quotation mark to "No" since Yes/No is a text value.
  • Removed the quotations after the False since if the value returned is a "No", it should display the table and not empty string. Please see below the final Quote template.

Screen Shot 2019-02-14 at 7.23.31 PM.png






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