Fatal Error while publishing PDF

Post here questions and problems related to editing and publishing DITA content.
digital_nomad
Posts: 11
Joined: Thu Jul 28, 2022 9:03 am

Fatal Error while publishing PDF

Post by digital_nomad »

I get the following error while generating a PDF using a custom transformation scenario based on the DITA Map PDF - based on HTML5 and CSS transformation scenario.

System ID: spo://path/Developer-Guide.ditamap
Scenario: PDF
Input file: spo://path/Developer-Guide.ditamap
Engine name: DITA-OT
Severity: fatal
Description: Transformation failed. C:\Program Files\Oxygen XML Editor 27\frameworks\dita\DITA-OT\plugins\org.dita.base\build_preprocess.xml:117: java.lang.RuntimeException: Cannot write outside of the temporary files folder: C:/Users/xyz/AppData/Local/Temp/OxygenXMLTemp/ditaTemporaryOutputDir-czn_jz1_mfc/t1/t2/t3/t4/t5/topics/LIMaaS-User-Token-Provisioning.dita


Other people in my team are able to generate the same PDF without any error. I have tried the following:

1. Reinstall Oxygen.
2. Restart the laptop
3. Set JVM arguments to -Xmx5600m

Please help to fix the issue.
julien_lacour
Posts: 679
Joined: Wed Oct 16, 2019 3:47 pm

Re: Fatal Error while publishing PDF

Post by julien_lacour »

Hello,

This error can appear when the 'fix.external.refs.com.oxygenxml' parameter is enabled: if you have <xref> elements referencing external resources but without any @scope attribute, the engine will process it as a local resource and search for a common ancestor to all topics, leading to "Cannot write outside of the temporary files folder".

To avoid such error, you should run the Validate and Check for Completeness tool (available in the DITA Maps Manager) with the "Report references to resources outside of the DITA map folder" checked. You will obtain warnings such as:
Reference to external resource "https://..." needs to have the "scope" attributes set to it.
Once these warnings resolved, you will be able to generate the PDF.

Regards,
Julien
digital_nomad
Posts: 11
Joined: Thu Jul 28, 2022 9:03 am

Re: Fatal Error while publishing PDF

Post by digital_nomad »

Thank you. That has fixed the issue.
Post Reply