Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Adaptive form submission error

Avatar

Level 3

We are getting error while submitting adaptive form.how to resolve this issue? i have attached complete error.log file . 

Client side we are getting popup with below error

[AF] [AEM-AF-901-004] Encountered an internal error while submitting the form

 

Error log details:

23.02.2017 15:37:52.829 *ERROR* [0:0:0:0:0:0:0:1 [1487844472814] POST /content/forms/af/qr/customer-care/jcr:content/guideContainer.af.internalsubmit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.SubmitDataCollector Unable to create JSON for Submit
javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: Unable to evaluate expression using this context

5 Replies

Avatar

Level 2

Hi Balu M,

Can you please share the form with which you are getting the error.

Thanks & Regards,

-Sudhanshu

Avatar

Level 3

Hi, 

We are placing "data" xml file in slingrequest to enable form field pre-population functionality.

https://helpx.adobe.com/aem-forms/6-2/prepopulate-adaptive-form-fields.html

Please read "Setting data attribute in slingRequest" section for more details. We have removed this functionality and form submission working for us.

One of the reason(I am not sure) for getting this error,during form submission its unable to replace data object already placed in request attribute. so we have implemented this functionality in different way. 

Avatar

Level 1
Level 1

Thank you for your answer. We are pre-populate the form as well. Did you get the error every time on submission?

Avatar

Level 3

You may want to check the XML data you're populating with versus the schema you're using in the form. Pay particular attention to all of the bindings in any of your panels. Make sure they are linked to repeating elements in the schema if they are repeating and if they are not repeating, the min and max values in the panel should be blank (not 0, specifically blank).

Avatar

Level 3

We are getting this error only for few forms. as suggested by LeSutton please verify your xml format .when there is mismatch on form xml then only we will get error.