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>
Note: we followed the process as per this docx. Generate PDF documents using output service | Adobe Experience Manager
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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
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.
Let me if i need to modify/change anything.
Thanks.
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
The link provided by pranay will only work for AEM Forms 6.5 and will not work for AEM Forms CS
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies