Skip to main content
Level 3
Aug 14, 2025 6:21 AM UTC

AEM Adaptive Form Query

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.

 

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

7 replies

Adobe Employee
Aug 14, 2025 6:27 AM UTC

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

Translate
Level 3
Aug 14, 2025 6:37 AM UTC

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

 

Translate
Adobe Employee
Aug 14, 2025 6:42 AM UTC

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

Translate
Pankajgirotra
Adobe Employee
Adobe Employee
Sep 3, 2025 7:40 AM UTC

@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?

Translate
Pankajgirotra
Adobe Employee
Adobe Employee
Sep 25, 2025 6:08 AM UTC

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

Translate
Level 3
Sep 25, 2025 6:13 AM UTC

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

Translate