Hi Team
we have requirement of generaing pdf file.we have designed a flow for that first we are generating the docx file from that will bys using PDF from DOCX service trying to convert pdf file.
In this process we could see docx file generating successfully we are giving docx file as input to PDF from DOCX smart service.Docx file is generating successfully but pdf file is not generating.I can see PDF from DOCX is not running sucessfully with error message of "Exception exporting package".Can someone help me what could be the reason .
Thanks for the response in advance.
Discussion posts and replies are publicly visible
Here is a similar issue posted and resolution suggested for that might help!
I suggest to verify the correctness of the DOCX file first. This error typically point to an error in the file.
The most common cause of Exception Exporting Package is either an outdated Dynamic Document Generator plugin or a DOCX template not created in Microsoft Word. Update the plugin first, then ensure your DOCX is built using MS Word (not Google Docs). Also verify the output folder has permissions and simplify any complex tables or content in the template.
Stefan Helzle In Our DOCX template we have used this «@before-cell[#list doc.root.breakdownvsf»«${data.year}»«@after-cell[/#list]» in one table which is generating DOCX file while converting to PDF this is causing issue.Can Somone Suggest how can we replace this to fix the issue
Shubham Aware In Our DOCX template we have used this «@before-cell[#list doc.root.breakdownvsf»«${data.year}»«@after-cell[/#list]» in one table which is generating DOCX file while converting to PDF this is causing issue.Can Somone Suggest how can we replace this to fix the issue
Put the full #list loop only in the first cell of the repeating row using @before-row[/#list] and @after-row tags - not @before-cell/@after-cell. --> this ensures proper row-level iteration and fixes the PDF export issue.
Shubham Aware If i use this rows @before-row[/#list] and @after-row tags we are getting output like this
But in our requirement we are requiring below table format
Transpose your data to column-list XML (<years><year name="2025"/>...</years>), use @before-cell[#list doc.years as y] for column headers, @before-row for data rows.
Thanks for sharing this issue. We faced a similar problem earlier while converting DOCX files to PDF using the Appian plug-in. In our case the error was caused by formatting elements inside the DOCX template, and cleaning up the template structure resolved the “Exception exporting package” error.
Did you check the thread above. As per the user - "the source of the issued ended up being a bad reference anchor link. Removing it resolved the issue for me. I'd suggest troubleshooting the file being generated by removing segments until it generates the PDF successfully and then focusing on that segment of the docx file to find the issue."