Fatal Error while publishing PDF
Post here questions and problems related to editing and publishing DITA content.
-
- 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.
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.
-
- 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:
Regards,
Julien
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:
Once these warnings resolved, you will be able to generate the PDF.Reference to external resource "https://..." needs to have the "scope" attributes set to it.
Regards,
Julien
-
- Posts: 11
- Joined: Thu Jul 28, 2022 9:03 am
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service