[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form. - Works on Author | Community
Skip to main content
Nina_Carty
Level 3
March 14, 2022
Solved

[AF] [AEM-AF-901-004]: Encountered an internal error while submitting the form. - Works on Author

  • March 14, 2022
  • 2 replies
  • 5526 views

We are deploying AEM Forms and are having an issue submitting them. All forms work perfectly on our Author instance (domain URL and IP address). However, when we publish them, they do not work on publisher or our dispatcher (using domain URLs). They also do not work on the publisher IP (no dispatcher).

We have tried editing the Apache Sling Referrer Filter per other posts but that did not work. We have tried all of the solutions that we can find. Any assistance would be greatly appreciated as we cannot move to production until this issue is solved.

Thank you.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nina_Carty

That IP address is what our network team says is our PAT address. All outgoing traffic from our organization goes out on that address. It is not an IP of any of our instances.


After intensive work with Girish, it is working! Here are the steps we took.

  1. Create swagger file
  2. Create Cloud Service Datasource
  3. Create Form Data Model
  4. Create Form
  5. Create Webpage and embed Form
  6. Create Package including
    1. /conf/<configuration-folder-name>/settings/cloudconfigs/fdm/<datasource-name>
    2. /content/dam/formsanddocuments/<form-name>
    3. /content/dam/formsanddocuments-fdm/<form-model-name>
    4. /content/forms/af/<form-name>
    5. Webpage
  7. Build, download and install package on publisher
  8. Open Cloud Service Datasource and re-enter password (verify base path – it may truncate)

Step 8 is the really important one. Thank you, Girish!!

2 replies

Pulkit_Jain_
Adobe Employee
Adobe Employee
March 15, 2022

@nina_carty 

This is a server-side exception during submission, that's why you're seeing a generic error message “Encountered an internal error while submitting the form” on the client-side.

You may have to check detailed error logs to identify the root cause.

Mayank_Tiwari
Adobe Employee
Adobe Employee
March 15, 2022
Nina_Carty
Level 3
March 15, 2022

I just followed the instructions from the link you posted. I tried entering our author IP, IP with port and domain URL. None of them have worked. The username and password is the admin so it should have all security necessary. Should I be entering another URL?

Mayank_Tiwari
Adobe Employee
Adobe Employee
March 15, 2022

Can you please share the screenshots of the "AEM DS service settings" and "Apache Sling authentication service" configurations?