Expand my Community achievements bar.

SOLVED

AEMaaCS forms Output Services generatePDFOutput throws exception AEM_OUT_001_003

Avatar

Level 4

Tried to generate a PDF with the input of xml and .xdp template. Getting this exception 
com.adobe.fd.output.commons.exception.OutputServiceException: AEM_OUT_001_003:Unexpected Exception: AEM_OUT_001_003:Unexpected Exception: Error resolving template

we are using the below xml and xdp template

<?xml version="1.0" encoding="UTF-8"?>
<data>
<fName>First Name</fName>
<lName>Last Name</lName>
</data>

aravindS_0-1743163500211.png

Note: we followed the process as per this docx. Generate PDF documents using output service | Adobe Experience Manager

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Employee
6 Replies

Avatar

Employee

Hi @aravindS,

The XML that you are using is wrong as it is not able to recognize the template. I have updated the input XML and now I am able to see the prefil information.

Pranay_M_0-1743342938259.png

Sample XML:

<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2022-06-21T07:32:11Z" uuid="55226f44-34ad-4572-9ad5-23834f260aa5">
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<xfa:data>
<form1>
<fname>FirstName</fname>
<lname>LastName</lname>
</form1>
</xfa:data>
</xfa:datasets>
</xdp:xdp>

Thanks
Pranay

Avatar

Level 4

Hi @Pranay_M ,

Thanks for your reply, I have tried the same xml format which you shared still i got the same exception. This is the code which i'm using. Here I have added the sample xdp also.

aravindS_0-1743491842646.png

Let me if i need to modify/change anything.

Thanks.

Avatar

Employee

Hi @aravindS,

Thank you so much for your response. Based on the description, I have made some changes to the Sample.XML. Please find below the updated XML and try out the options.

 

<?xml version="1.0" encoding="UTF-8"?>
<form1>
<fName>FirstName</fName>
<lName>LastName</lName>
</form1>

 

Also, I tried to run the same sample XDP and the XML using the OOTB example and I am successfully able to generate the output document.

 

Thanks

Pranay

Avatar

Level 4

Hi @Pranay_M ,

I tried again with the xml data, still getting the same exception, can you please share the java code/file, i will try with that.

Thanks

Avatar

Correct answer by
Employee

Avatar

Employee Advisor

The link provided by pranay will only work for AEM Forms 6.5 and will not work for AEM Forms CS