Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

AEM Adaptive Form Query

Avatar

Level 4

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.

 

5 Replies

Avatar

Level 3

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

Avatar

Level 4

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

 

Avatar

Level 3

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

Avatar

Level 4

Hi @rahulpandey27 ,

Forms Portal bundles are active. Also, restarted the server, same error we got.

 

Thanks,

Shreyas.

 

Avatar

Employee

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