Document is not getting generated after preview
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello team,
I have selected document template and after preview i am getting below error and logs. Can someone please help with this. Its for ootb document template and as well as custom document template.
Error:
Logs:
Request : <sysid> failed with ' Conversion failed. Cannot invoke "java.io.ByteArrayOutputStream.toByteArray()" because "pdfOS" is null': no thrown error
- Labels:
-
Human Resources Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Tanushree Maiti / @pr8172510
Its published and completely ootb template but still facing issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @CaptainG
Can you try this option
1. Clear your browser cache or try it in incognito window/private browser.
2. If following kind of CSS added in the template
<style>
@page {size: landscape}
</style>
refer: Error Message: Cannot invoke "java.io.ByteArrayOutputStream.toByteArray()" because "pdfOS" is null
2. If not working , can you try this
changing the system property com.snc.pdf.deployment.mode from "SERVICE" to "INSTANCE"
Refer: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2473690
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @pr8172510 / @Tanushree Maiti ,
Its published and completely ootb template but still failing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @CaptainG ,
Could you please clear the cache from browser as well as non Prod instance (Application Navigator) ?
Please check below thread : https://www.servicenow.com/community/hrsd-forum/document-templates-preview-and-pdf-generation-fail-o...
Please mark helpful and correct answer if it's worthy for you.
