AEM Adaptive Form Query | Community
Skip to main content
Level 3
August 14, 2025

AEM Adaptive Form Query

  • August 14, 2025
  • 2 replies
  • 610 views

Hi, I was using the save draft feature in one of my adaptive form, but facing an issue while saving the supporting documents. I tried saving the form without supp docs, and it saved. But whenever I try saving by adding the supp docs, its throwing an error.

It says "error occurred while draft saving".

AEM version used: 6.5.21.0

 

So, please provide some insights regarding this.

 

2 replies

Adobe Employee
August 14, 2025

Hello @shreyas_tm 

 

Can you please confirm how you are adding the supp documents on form?

Also, kindly share the error snippet from logs while saving the form.

 

Thanks,

Rahul Pandey

Level 3
August 14, 2025

Hi @rahulpandey27 ,

1. We are trying to add the supp docs using button component and writing the scripts for it.

2.*ERROR* [137.151.120.146 [1754999826758] POST jcr:content/guideContainer/toolbar/items/saveguidedraft.fp.draft.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.NoClassDefFoundError: Could not initialize class com.adobe.fd.fp.exception.FormsPortalException
at com.adobe.fd.fp.customhandler.FormsPortalCustomDataServiceImpl.saveAttachmentInternal(FormsPortalCustomDataServiceImpl.java:369) [adobe-formsportal-custom-services.core:1.0.0.SNAPSHOT]
at com.adobe.fd.fp.customhandler.FormsPortalCustomDataServiceImpl.saveAttachment(FormsPortalCustomDataServiceImpl.java:336) [adobe-formsportal-custom-services.core:1.0.0.SNAPSHOT]
at com.adobe.fd.fp.servlets.FormsPortalDraftsandSubmissionServlet.copyAttachments(FormsPortalDraftsandSubmissionServlet.java:746) [com.adobe.livecycle.formsportal-bundle:8.0.110]
at com.adobe.fd.fp.servlets.FormsPortalDraftsandSubmissionServlet.saveDraft(FormsPortalDraftsandSubmissionServlet.java:436) [com.adobe.livecycle.formsportal-bundle:8.0.110]
at com.adobe.fd.fp.servlets.FormsPortalDraftsandSubmissionServlet.postRequestHandler(FormsPortalDraftsandSubmissionServlet.java:198) [com.adobe.livecycle.formsportal-bundle:8.0.110]
at com.adobe.fd.fp.servlets.FormsPortalDraftsandSubmissionServlet.doPost(FormsPortalDraftsandSubmissionServlet.java:151) [com.adobe.livecycle.formsportal-bundle:8.0.110]

 

 

Thanks,

Shreyas

 

Adobe Employee
August 14, 2025

Hello @shreyas_tm 

 

It looks like an issue with FormsPortal bundle.

Can you please check in the bundles page if FormsPortal bundles are active?

You can also try restarting the bundles.

 

If you are using any custom builds, please make sure that this class i included in the artifact.

 

Thanks,

Rahul Pandey

Pankajgirotra
Adobe Employee
Adobe Employee
September 3, 2025

@shreyas_tm By looking at logs, it seems you are using custom implementation of Forms Portal. And, its failing in saveAttachmentInternal method. And, in Exception you might be throwing FormsPortalException. Would it be possible for you to debug that code base and check why its throwing the exception?

Pankajgirotra
Adobe Employee
Adobe Employee
September 25, 2025

Hi @shreyas_tm ,
Are you able to resolve the issue?

Level 3
September 25, 2025

Hi @pankajgirotra ,

Yes, but not sure about the exact solution. It started re-working, we just deployed the new bundle, may be a bundle issue.

 

Thanks,

Shreyas