Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

ServiceNow document is not getting generated after preview

Himanshu Raj
Tera Expert

Hello,

 

I have selected document template and after preview i am getting below error and logs. Can someone please help with this 
Error:

HimanshuRaj_0-1773849905610.jpeg

Logs:

Request : <sysid> failed with ' Conversion failed. Cannot invoke "java.io.ByteArrayOutputStream.toByteArray()" because "pdfOS" is null': no thrown error

Gone through available article but issue not solved.
Solved: Document Templates preview and PDF generation fail... - ServiceNow Community
Tried clearing browser cache and relogging in and also checked the style tags in the document, everything seems to be right
@Ankur Bawiskar @Ravi Gaurav @Dr Atul G- LNG @Brian Bakker 
Thanks in advance. 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron

Is this a plugin feature? Try to repiar or upgrade the plugin. If the issue still persists, please log a support case

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@Himanshu Raj 

is this about the OOTB Document Template application?

what's your configuration?

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

shwetakhema
Tera Guru

Hi,

Just to check on the error, replace template with basic HTML, also remove all variables or add them one by one and then test. Do check the logs before and after testing the result. If it works then try with another document template so probably it will be easy to relate if the issue is with the doc template or not. 

 

Try this approach, if it works please like and mark my response helpful. Thanks

Tanushree Maiti
Tera Sage

Hi @Himanshu Raj ,

 

Have you used any meta tag in your html document template?

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: