Expand my Community achievements bar.

SOLVED

Assembler ddx issue "insertDocument" operation failed.

Avatar

Level 2

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:

chayanika_27_0-1677666123154.png

 

chayanika_27_1-1677666123163.png

 

 

 

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".

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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. 

View solution in original post

6 Replies

Avatar

Employee Advisor

@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

Avatar

Level 2

hi,

Sharing the stack trace for the error.

chayanika_27_0-1677668428551.png

 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?

Avatar

Correct answer by
Employee Advisor

@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. 

Avatar

Community Advisor

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.

Avatar

Level 2

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. 

Avatar

Employee Advisor

@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.