Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Unable to submit the AEM form. Getting the error atttached.

Avatar

Level 1

29.08.2023 13:36:22.582 *WARN* [127.0.0.1 [1693296382578] POST /content/forms/af/dataTestForm HTTP/1.1] org.apache.sling.servlets.post.impl.SlingPostServlet Exception while handling POST on path [/content/forms/af/dataTestForm] with operation [org.apache.sling.servlets.post.impl.operations.ModifyOperation]
java.lang.IllegalArgumentException: Can't create child on a synthetic root

 

Checked permission In local I am using ADMIN user which has all the rad /write privilege. Tried by providing local host IP instead of hostname. Logs is attached.

 

Using cloud SDK in local runnign ver Java 11.

AEM Version : aem-sdk-2023.6.12255.20230608T053118Z-230400

AEM form Version : aem-forms-addon-2023.07.04.00-230601.far

 

 

Any resolution for this ?

3 Replies

Avatar

Employee Advisor

@RaviRa1 

What is the submit action you're using- Is it REST? I wanted to check why you are posting the data to another form. It should ideally be a servlet call.

Did you try to change the hostname to FQDN instead of localhost?

I see the below-mentioned error msg for the submission. 

Couldn't post data to http://127.0.0.1:4506/content/forms/af/dataTestForm for form /content/forms/af/test-adpative-form-2408/jcr:content/guideContainer
29.08.2023 13:36:22.588 *ERROR* [127.0.0.1 [1693296379987] POST /content/forms/af/test-adpative-form-2408/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.RESTSubmitActionService [AF] [Submit] HTTP Status code: 500, reason phrase is :Server Error for form /content/forms/af/test-adpative-form-2408/jcr:content/guideContainer

 

Avatar

Level 1

Yes its coming when I am using submit action provided in forms. 

 

I have replaces http://localhost to 127.0.0.1 the path where i wan to post in the form. Still this issue is there.

 

No client side customization is done on the form

Avatar

Level 4

Which kind of submit are you using email config?