Error when exporting record to PDF

valentin3
Tera Guru

Hello guys, 

I need your help. We have recently upgraded to Yokohama from WashingtonDC. 

We have a custom table that extends the task table. Our issue at the moment is when you try and export as PDF a record from this custom table.

 

If you export the list of records from list view as PDF is working fine. I have also tried with other records from other custom tables (similar with the one that we are having issue with) and it is working fine. Also, I want to mention that this was working fine on WashingtonDC.

Is it true that I see an error in the logs: "com.glide.script.RhinoEcmaError: Cannot read property "u_custom_field" from null
<refname> : Line(1) column(0)
==> 1: current.u_custom_field == true
Stack trace:
at <refname>:1"

We don't have special ACLs or business rules..

Can you help me with some guidance? I don't know what to debug further. 

1 ACCEPTED SOLUTION

So, with the new Upgrade ServiceNow said it's an known issue and they are working on a fix. 

As a workaround they said to de-activate the following property: com.snc.pdf.generation.v2.enabled

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@valentin3 

is that field present on your custom table?

any query business rule on your custom table?

is that an OOTB Export button?

If you are sure nothing has changed and this issue started coming after upgrade then raise a Case with ServiceNow

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello,

 

The custom field is not present on the form and also it is not used in any logic for this custom table.

We don't have any QBR applied to this custom table, indeed we only have one QBR for the "task" table - but I don't see how it is affecting the custom table. 

Yes - this should be the OOTB export to pdf button - we didn't modify it. I see now that you have a pop-up to select landscape/portrait pdf , instead of 2 options like before, but like I said it is working for other custom tables. 

Ok, thanks for confirming that I should address this issue to HI.

 

Best regards,

Vale

@valentin3 

Sure, please raise a case and keep us posted.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

So, with the new Upgrade ServiceNow said it's an known issue and they are working on a fix. 

As a workaround they said to de-activate the following property: com.snc.pdf.generation.v2.enabled