Expand my Community achievements bar.

SOLVED

Customized workflow(Upload Dam Asset) showing the "Processing"

Avatar

Level 3

After uploading the dam New asset getting "Processing..." in update dam asset workflow.

process.JPG

failure.JPG

comp.JPG

aft_comp.JPG

Please help me to overcome the workflow processing while uploading dam asset issue

Thanks

Karthi

1 Accepted Solution

Avatar

Correct answer by
Level 3

Thanks gauravb10066713

am see /etc/workflow/instances/server0/2019-02-22/update_asset_11 in my repository .

Now its resolved my issue.

Solution :

*Terminated the instance and refreshed the page .

*Open the image ,in left side goto Timeline option and  start the "dam update asset" workflow.

Now The Rendition works with out any error.

Thanks

Karthi

View solution in original post

5 Replies

Avatar

Level 10

Did you add any custom actions to this workflow? If so - your custom action may not have successfully completed.

Avatar

Level 10

Could you check if your custom step has completed or stuck and has thrown errors in error.log?  Does that second screenshot relate to that error?  You'd have to share more details about your use case, implementation and the logs snippets.

Avatar

Level 3

Hi smacdonald2008gauravb10066713​ ,

thanks for the reply to this thread!

yeah its customized and the workflow with default process and its fails in continueupload? step and getting  failure.

continue-step.JPG

Error :

com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error

at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:199)

at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:258)

at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58)

at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: com.adobe.granite.workflow.WorkflowException: Failed to execute process

at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:108)

at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:189)

... 8 more

Caused by: com.day.cq.workflow.WorkflowException: com.day.cq.workflow.WorkflowException: Unable to retrieve workflow instance: /etc/workflow/instances/server0/2019-02-22/update_asset_11

at com.day.cq.dam.core.process.GateKeeperProcess.execute(GateKeeperProcess.java:84)

at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)

... 9 more

Caused by: com.day.cq.workflow.WorkflowException: Unable to retrieve workflow instance: /etc/workflow/instances/server0/2019-02-22/update_asset_11

at com.day.cq.workflow.impl.CQWorkflowSessionWrapper.complete(CQWorkflowSessionWrapper.java:509)

at com.day.cq.dam.core.process.GateKeeperProcess.execute(GateKeeperProcess.java:72)

... 10 more

Caused by: javax.jcr.PathNotFoundException: /etc/workflow/instances/server0/2019-02-22/update_asset_11

at org.apache.jackrabbit.oak.jcr.session.SessionImpl.getItem(SessionImpl.java:361)

at com.adobe.granite.repository.impl.CRX3SessionImpl.getItem(CRX3SessionImpl.java:168)

at com.adobe.granite.workflow.core.jcr.WorkflowManager.getWorkflowNode(WorkflowManager.java:956)

at com.adobe.granite.workflow.core.jcr.WorkflowManager.getWorkflowInstance(WorkflowManager.java:125)

at com.adobe.granite.workflow.core.jcr.WorkflowManager.getWorkflowInstance(WorkflowManager.java:245)

at com.adobe.granite.workflow.core.WorkflowSessionImpl.completeInternal(WorkflowSessionImpl.java:1040)

at com.adobe.granite.workflow.core.WorkflowSessionImpl.complete(WorkflowSessionImpl.java:1032)

at com.day.cq.workflow.impl.CQWorkflowSessionWrapper.complete(CQWorkflowSessionWrapper.java:507)

... 11 more

Avatar

Level 10

the root cause is mentioned in logs -- Unable to retrieve workflow instance: /etc/workflow/instances/server0/2019-02-22/update_asset_11  

javax.jcr.PathNotFoundException: /etc/workflow/instances/server0/2019-02-22/update_asset_11

Could you check if the workflow instance exists at this path? If not, then you should figure out how/when/why was it deleted? In addition to that, you haven't enabled 'handler advance' hence the workflow couldn't proceed and got stuck. I assume that is done on-purpose for a specific requirement?

Try to run the workflow again and monitor ongoing execution & logs to get the next steps.

Avatar

Correct answer by
Level 3

Thanks gauravb10066713

am see /etc/workflow/instances/server0/2019-02-22/update_asset_11 in my repository .

Now its resolved my issue.

Solution :

*Terminated the instance and refreshed the page .

*Open the image ,in left side goto Timeline option and  start the "dam update asset" workflow.

Now The Rendition works with out any error.

Thanks

Karthi