Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

com.adobe.granite.workflow.WorkflowException: Document is in a disposed state!


Level 2

Hey everyone,


I'm having trouble with my workflow trying to save a document to filesystem. Basically, we have a custom step that help us save documents into filesystem and is working as expected (it saved attachments from an Assign Task to a specific file location). Here you have to set the file location including the name of the file and the document that you want to save:



The problem I'm having is with the Generate Document of Record, I have the following configuration for the step. formData represents the all the data the user submitted from a form and document is just the variable type Document.



This is the error triggered when trying to save a document from the Generate Document of Record:

com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(
at com.adobe.granite.workflow.core.job.JobHandler.process(
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at java.base/
Caused by: com.adobe.granite.workflow.WorkflowException: Document is in a disposed state!
at com.s360g.aem.workflowcomponent.custom.saveDocumentToFilesystem.execute(
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(
... 8 more


Let me know if I'm configuring something wrong or if some has seen this error


Best regards,

1 Reply


Level 4

Hi @SebasRios34 ,

Can you please provide saveDocumentToFilesystem this file or else what is the line at 81, just to see what can be the issue.