Assembler ddx issue "insertDocument" operation failed. | Community
Skip to main content
Level 2
March 1, 2023
Solved

Assembler ddx issue "insertDocument" operation failed.

  • March 1, 2023
  • 3 replies
  • 1424 views

Hi everyone,

 

Using assembler service we are trying to merge two pdf’s. But we are facing the following issue:

 

com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on "5-R-1229.pdf".

com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on "9-A-1577.pdf".

Environment details - AEM 6.5 (On-Premise) Forms-add-on package (adobe-aemfd-win-pkg-6.0.640.zip), OSGI forms & output service.

The ddx we are using:

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">

<PDF result="output.pdf">

<PDF source="5-R-1229.pdf"/>

<PDF source="9-A-1577.pdf"/>

</PDF>

</DDX>

 

Code snippet:

 

 

 

 

Can anyone please suggest why the pdf generation is failing and throwing the error as com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on "5-R-1229.pdf".

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pulkit_Jain_

@chayanika_27 

I was referring to server log stack trace. We may get some additional info on the issue- if this is an issue with the PDF file or DDX etc.

At times, PDF generated using the 3rd party softwares OR XFA form PDF fail with similar errors. I wanted to test the same at my end thus requested these input files.

Quick test- Please pass these PDFs via Distiller service and then try to assemble the two. 

3 replies

Pulkit_Jain_
Adobe Employee
Adobe Employee
March 1, 2023

@chayanika_27 

Please share the complete stack trace of the error msg[0]

Is this issue specific to these PDFs? If so, please share these two PDFs over a shared drive and DM the link to download for internal testing.

[0] - com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on

Level 2
March 1, 2023

hi,

Sharing the stack trace for the error.

 Can you please share what one need to check in PDF which is failing on assembling ,like should it be PDF/A compliance or what?

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
March 1, 2023

@chayanika_27 

I was referring to server log stack trace. We may get some additional info on the issue- if this is an issue with the PDF file or DDX etc.

At times, PDF generated using the 3rd party softwares OR XFA form PDF fail with similar errors. I wanted to test the same at my end thus requested these input files.

Quick test- Please pass these PDFs via Distiller service and then try to assemble the two. 

Vijay_Katoch
Community Advisor
Community Advisor
March 1, 2023

Are your pdf files valid according to the PDF specs? You can check by using the pdf utility service.

 

We do face such issue sometimes with invalid pdf files. What we do is, we create the pdf again, like with PdfCreator tool and then use it. It works in assembler service then.

Try this if it helps you.

Level 2
March 1, 2023

hi,

I will try to check the pdf files as you suggested. 

Is there any pdf specification that need to be followed for using assembler service. 

Mayank_Gandhi
Adobe Employee
Adobe Employee
March 2, 2023

@chayanika_27 lets try to just start with one file and see if the file has any policy or protection. Reason can be any thing at doc level preventing the merge operation. DDX looks fine though.