Expand my Community achievements bar.

SOLVED

Adobe 6.5.15 uploading an asset that already exists in the DAM

Avatar

Level 8

When I upload an asset (tropical.jpg) to the dam and the asset already exists in the dam and I select Keep in the UI Dialog: Duplicate Asset Detected the following trace is recorded in the error.log.  

 

The image in Dam stays forever in status Processing...

There are two workflow status entries recorded in the Workflow Archive. One is Completed and one is Aborted.

workflow-status.JPG

 

Any suggestions what could be the cause and where should I troubleshoot?

 

10.07.2023 08:21:15.703 *INFO* [oak-repository-executor-1] com.adobe.granite.repository Service [8728, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED
10.07.2023 08:21:20.127 *INFO* [[0:0:0:0:0:0:0:1] [1688970080054] POST /content/dam/templates/test2.createasset.html HTTP/1.1] com.day.cq.dam.core.impl.servlet.CreateAssetServlet Marked asset /content/dam/templates/test2/tropical.jpg as duplicate.
10.07.2023 08:21:20.141 *INFO* [Apache Sling Resource Resolver Finalizer Thread] com.adobe.granite.repository Service [8728, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent UNREGISTERING
10.07.2023 08:21:20.141 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_22:/content/dam/templates/test2/tropical.jpg/jcr:content/renditions/original] com.day.cq.dam.core.process.GateKeeperProcess execute: terminated workflow for duplicate asset - /content/dam/templates/test2/tropical.jpg
10.07.2023 08:21:20.143 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_22:/content/dam/templates/test2/tropical.jpg/jcr:content/renditions/original] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step
java.lang.NullPointerException: null
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:404) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
10.07.2023 08:21:20.143 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_22:/content/dam/templates/test2/tropical.jpg/jcr:content/renditions/original] com.adobe.granite.workflow.core.job.JobHandler Error processing workflow job
java.lang.NullPointerException: null
at com.adobe.granite.workflow.core.jcr.WorkflowManager.setWaitingToAdvance(WorkflowManager.java:562) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:432) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
10.07.2023 08:21:20.143 *WARN* [sling-threadpool-6ad428b2-c1a0-4e82-8239-926766440932-(apache-sling-job-thread-pool)-23-Granite Workflow Queue(com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Workflow Queue Failed job Sling Job [topic=com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset, id=2023/7/10/8/21/db5240f2-48b6-4c2a-b92c-6627c69a3d10_32, properties=slingevent:application=db5240f2-48b6-4c2a-b92c-6627c69a3d10,jcr:created=java.util.GregorianCalendar(Mon Jul 10 08:21:20 CEST 2023),slingevent:created=java.util.GregorianCalendar(Mon Jul 10 08:21:20 CEST 2023),event.job.queuename=Granite Workflow Queue,event.job.queued.time=java.util.GregorianCalendar(Mon Jul 10 08:21:20 CEST 2023),jcr:createdBy=sling-

1 Accepted Solution

Avatar

Correct answer by
Level 8

Thank you very much @Nikita___Garg 

The issue is finally resolved. The cause was a change in the overlay for fileupload.js.

 

There I had to change the value from original "false" to "true".

damfileupload.fileUpload.parameters.push({
name: "createversion",
value: "true"
});

 

View solution in original post

8 Replies

Avatar

Community Advisor

Hi,
Tried to enable duplicate asset detection in my local instance and uploaded an asset. The asset is being uploaded and renditions are getting generated without any issue with an OOTB local instance. Don't see any failures in workflows.

Looks like some issue with below workflow model which is getting trigerred when you are uploading any assets . Check the same as a starting point :-
com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset

 

 

10.07.2023 08:21:20.143 *WARN* [sling-threadpool-6ad428b2-c1a0-4e82-8239-926766440932-(apache-sling-job-thread-pool)-23-Granite Workflow Queue(com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Workflow Queue Failed job Sling Job

 

Thanks,

Somen 

Avatar

Community Advisor

hello @anasustic 

 

Is the issue happening:

- Only on your local or all environments?

- Is it happening on AEM 6.5.15 without custom code?


Aanchal Sikka

Avatar

Level 8

Hello @aanchal-sikka and thank you very much for answering. It is happening on AEM 6.5.15
with custom code.

 

The issue happens also in other environments. Here is the log from another environment. In this case that follows I uploaded a dummy.pdf that already exists in the dam and I answered to keep it:

11.07.2023 10:07:30.186 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_16:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.process.GateKeeperProcess execute: terminated workflow for duplicate asset - /content/dam/test/dummy.pdf
11.07.2023 10:07:30.189 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_16:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step
java.lang.NullPointerException: null
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:404) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
11.07.2023 10:07:30.189 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_16:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.adobe.granite.workflow.core.job.JobHandler Error processing workflow job
java.lang.NullPointerException: null
at com.adobe.granite.workflow.core.jcr.WorkflowManager.setWaitingToAdvance(WorkflowManager.java:562) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:432) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
11.07.2023 10:07:30.190 *WARN* [sling-threadpool-10b59e54-5c47-401f-a26b-e74c1a9b69a5-(apache-sling-job-thread-pool)-16-Granite Workflow Queue(com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Workflow Queue Failed job Sling Job [topic=com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset, id=2023/7/11/10/7/736c4e05-787e-4f17-b507-e92e64c0f7e5_35, properties=slingevent:application=736c4e05-787e-4f17-b507-e92e64c0f7e5,jcr:created=java.util.GregorianCalendar(Tue Jul 11 10:07:30 CEST 2023),slingevent:created=java.util.GregorianCalendar(Tue Jul 11 10:07:30 CEST 2023),event.job.queuename=Granite Workflow Queue,event.job.queued.time=java.util.GregorianCalendar(Tue Jul 11 10:07:30 CEST 2023),jcr:createdBy=sling-event,sling:resourceType=slingevent:Job,event.job.application=736c4e05-787e-4f17-b507-e92e64c0f7e5,event.job.retries=10,jcr:primaryType=slingevent:Job,event.job.retrycount=1,:sling:jobs:asynchandler=org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper$1@56dee86d,com.adobe.granite.workflow.job=com.adobe.granite.workflow.job.WorkflowJob@43bc6206,com.adobe.granite.workflow.jobid=VolatileWorkItem_node1_var_workflow_instances_server0_2023-07-10_update_asset_16], will retry 9 more time(s), retryCount=1

I can see there is an error in the workflow job com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset but not sure how to go about it: 

 

11.07.2023 10:07:30.190 *WARN* [sling-threadpool-10b59e54-5c47-401f-a26b-e74c1a9b69a5-(apache-sling-job-thread-pool)-16-Granite Workflow Queue(com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Workflow Queue Failed job Sling Job [topic=com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset, id=2023/7/11/10/7/736c4e05-787e-4f17-b507-e92e64c0f7e5_35, properties=slingevent:application=736c4e05-787e-4f17-b507-e92e64c0f7e5,jcr:created=java.util.GregorianCalendar(Tue Jul 11 10:07:30 CEST 2023),slingevent:created=java.util.GregorianCalendar(Tue Jul 11 10:07:30 CEST 2023),event.job.queuename=Granite Workflow Queue,event.job.queued.time=java.util.GregorianCalendar(Tue Jul 11 10:07:30 CEST 2023),jcr:createdBy=sling-event,sling:resourceType=slingevent:Job,event.job.application=736c4e05-787e-4f17-b507-e92e64c0f7e5,event.job.retries=10,jcr:primaryType=slingevent:Job,event.job.retrycount=1,:sling:jobs:asynchandler=org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper$1@56dee86d,com.adobe.granite.workflow.job=com.adobe.granite.workflow.job.WorkflowJob@43bc6206,com.adobe.granite.workflow.jobid=V11.07.2023 10:08:32.021 *INFO* [oak-repository-executor-1] com.adobe.granite.repository Service [11718, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED

If I change the metadata of the asset in dam (dummy.pdf) and upload the file the duplicate will not be found and the workflow will run correctly:
11.07.2023 10:31:39.625 *INFO* [sling-oak-observation-12] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Transient Workflow Queue Starting job queue Granite Transient Workflow Queue
11.07.2023 10:31:39.633 *INFO* [sling-oak-observation-12] org.apache.sling.event Service [QueueMBean for queue Granite Transient Workflow Queue,11719, [org.apache.sling.event.jobs.jmx.StatisticsMBean]] ServiceEvent REGISTERED
11.07.2023 10:31:39.659 *WARN* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess This method has been deprecated. Using this method leaks a resource resolver and should be dropped in favour of alternative described in the detailed deprecation note
11.07.2023 10:31:39.662 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.day.cq.dam.core.process.XMPWritebackProcess payload path :/content/dam/test/dummy.pdf/jcr:content/metadata
11.07.2023 10:31:39.699 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.adobe.granite.asset.core.impl.metadata.xmpjcr.JcrToXmpVisitor Old content structure found at /content/dam/test/dummy.pdf/jcr:content/metadata/dc:creator, reading it as an array of simple nodes
11.07.2023 10:31:39.699 *WARN* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.adobe.granite.asset.core.impl.metadata.xmpjcr.JcrXmpUtils Invalid XMP name [ alt ], name appears to be a local name
11.07.2023 10:31:39.699 *WARN* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.adobe.granite.asset.core.impl.metadata.xmpjcr.JcrXmpUtils Invalid XMP name [ zkb_allowIndexing ], name appears to be a local name
11.07.2023 10:31:39.821 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.adobe.xmp.worker.files.ncomm.XMPFilesNComm [PERF][EXECUTE_START] | /tmp/JobHandler6618331683306713714.xmptmp/original | XMP injection
11.07.2023 10:31:39.834 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.adobe.xmp.worker.files.ncomm.XMPFilesNComm [XMPFilesProcessor-76861] PROC: Executing request injectXMP
11.07.2023 10:31:39.834 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.adobe.xmp.worker.files.ncomm.XMPFilesNComm [PERF][EXECUTE_END] | /tmp/JobHandler6618331683306713714.xmptmp/original | XMP injection
11.07.2023 10:31:39.837 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/dam-xmp-writeback_17:/content/dam/test/dummy.pdf/jcr:content/metadata] com.day.cq.dam.core.impl.handler.xmp.NCommXMPHandler Updated original binary with the newly created XMP Meta - /content/dam/test/dummy.pdf
11.07.2023 10:31:40.004 *INFO* [CommitStats] CommitStats 12 commits by 3 users [50% workflow-process-service, 41% sling-event, 8% gd252] from 3 locations [50% jobhandler:/var/workflow/instances/server0/2023-07-10/da..., 41% other:java.base/java.lang.Thread.run(Thread.java:834), 8% HTTP-POST:/content/dam/test/dummy.pdf] [CommitStats overhead was 1ms = 83.0us / commit]
11.07.2023 10:31:59.068 *WARN* [10.131.188.24 [1689064318970] GET /content/dam/acc.folderthumbnail.jpg HTTP/1.1] com.day.cq.dam.core.impl.ui.preview.PreviewGenerator could not save thumbnailNo matching property definition: dam:folderThumbnailPaths = [/content/dam/acc/frankly/advantages-pikto-4.png, /content/dam/acc/frankly/advantages-pikto-3.png, /content/dam/acc/frankly/advantages-pikto-2.png]
11.07.2023 10:31:59.105 *WARN* [10.131.188.24 [1689064318979] GET /content/dam/frankly.folderthumbnail.jpg HTTP/1.1] com.day.cq.dam.core.impl.ui.preview.PreviewGenerator could not save thumbnailNo matching property definition: dam:folderThumbnailPaths = [/content/dam/frankly/header-visual.png, /content/dam/frankly/app-download-appstore.png, /content/dam/frankly/app-download-googleplay.png]
11.07.2023 10:32:08.897 *INFO* [sling-oak-observation-1] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Workflow Queue Starting job queue Granite Workflow Queue
11.07.2023 10:32:08.901 *INFO* [sling-oak-observation-1] org.apache.sling.event Service [QueueMBean for queue Granite Workflow Queue,11720, [org.apache.sling.event.jobs.jmx.StatisticsMBean]] ServiceEvent REGISTERED
11.07.2023 10:32:08.929 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.adobe.granite.asset.core.impl.metadata.xmpjcr.XmpToJcrVisitor No custom schema available, using default XMP schema service
11.07.2023 10:32:08.965 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.video.FFMpegThumbnailProcess execute: asset [/content/dam/test/dummy.pdf] is not of a video mime type, asset ignored.
11.07.2023 10:32:08.972 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.process.CommandLineProcess execute: mime type [application/pdf] of asset [/content/dam/test/dummy.pdf] is not in list of accepted mime types [[image/eps, image/x-eps, application/postscript, application/eps, application/x-eps]], ignoring.
11.07.2023 10:32:08.973 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.video.FFMpegTranscodeProcess execute: asset [/content/dam/test/dummy.pdf] is not of a video mime type, asset ignored.
11.07.2023 10:32:08.991 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.process.CreatePdfPreviewProcess Rasterized /content/dam/test/dummy.pdf/jcr:content/renditions/original to an image with dim 595x842
11.07.2023 10:32:09.089 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.impl.RenditionMakerImpl generated rendition: /content/dam/test/dummy.pdf/jcr:content/renditions/cq5dam.thumbnail.140.100.png
11.07.2023 10:32:09.114 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.impl.RenditionMakerImpl generated rendition: /content/dam/test/dummy.pdf/jcr:content/renditions/cq5dam.thumbnail.48.48.png
11.07.2023 10:32:09.145 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.impl.RenditionMakerImpl generated rendition: /content/dam/test/dummy.pdf/jcr:content/renditions/cq5dam.thumbnail.319.319.png
11.07.2023 10:32:09.242 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.impl.RenditionMakerImpl generated rendition: /content/dam/test/dummy.pdf/jcr:content/renditions/cq5dam.web.1280.1280.jpeg
11.07.2023 10:32:09.285 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.pim.impl.sourcing.upload.process.ProductAssetsUploadProcess payload path :/content/dam/test/dummy.pdf/jcr:content/renditions/original
11.07.2023 10:32:09.285 *WARN* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess This method has been deprecated. Using this method leaks a resource resolver and should be dropped in favour of alternative described in the detailed deprecation note
11.07.2023 10:32:09.287 *WARN* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess This method has been deprecated. Using this method leaks a resource resolver and should be dropped in favour of alternative described in the detailed deprecation note
11.07.2023 10:32:09.325 *INFO* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_18:/content/dam/test/dummy.pdf/jcr:content/renditions/original] com.day.cq.dam.core.impl.process.SendTransientWorkflowCompletedEmailProcess Workflow is not transient. SendTransientWorkflowCompletedEmailProcess sends email only for transient workflows.
11.07.2023 10:32:10.000 *INFO* [CommitStats] CommitStats 14 commits by 4 users [42% workflow-process-service, 28% sling-event, 21% workflow-service, 7% gd252] from 3 locations [50% jobhandler:/var/workflow/instances/server0/2023-07-10/up..., 42% other:java.base/java.lang.Thread.run(Thread.java:834), 7% HTTP-POST:/content/dam/test.createasset.html] [CommitStats overhead was 1ms = 71.0us / commit]


Avatar

Employee Advisor

hi @anasustic ,

 

Could you please explain the customization you did on AEM DAM Update asset workflow.

 

Also screenshot of step where it fails from UI.

 

Thanks,

Nikita Garg

Avatar

Level 8

Hi @Nikita___Garg 

 

 

Here is a test case for uploading an existing tropical.jpg asset.

11.07.2023 16:02:37.520 *WARN* [sling-threadpool-10b59e54-5c47-401f-a26b-e74c1a9b69a5-(apache-sling-job-thread-pool)-11-Granite Workflow Queue(com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset)] org.apache.sling.event.impl.jobs.queues.JobQueueImpl.Granite Workflow Queue Failed job Sling Job [topic=com/adobe/granite/workflow/job/var/workflow/models/zkb/dam/update_asset, id=2023/7/11/16/2/736c4e05-787e-4f17-b507-e92e64c0f7e5_145, properties=slingevent:application=736c4e05-787e-4f17-b507-e92e64c0f7e5,jcr:created=java.util.GregorianCalendar(Tue Jul 11 16:02:19 CEST 2023),slingevent:created=java.util.GregorianCalendar(Tue Jul 11 16:02:19 CEST 2023),event.job.queuename=Granite Workflow Queue,event.job.queued.time=java.util.GregorianCalendar(Tue Jul 11 16:02:19 CEST 2023),jcr:createdBy=sling-event,sling:resourceType=slingevent:Job,event.job.application=736c4e05-787e-4f17-b507-e92e64c0f7e5,event.job.retries=10,jcr:primaryType=slingevent:Job,event.job.retrycount=10,:sling:jobs:asynchandler=org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper$1@4478f735,com.adobe.granite.workflow.job=com.adobe.granite.workflow.job.WorkflowJob@3809a473,com.adobe.granite.workflow.jobid=VolatileWorkItem_node1_var_workflow_instances_server0_2023-07-10_update_asset_19], will retry 0 more time(s), retryCount=10
11.07.2023 16:02:39.533 *ERROR* [JobHandler: /var/workflow/instances/server0/2023-07-10/update_asset_19:/content/dam/test/tropical.jpg/jcr:content/renditions/original] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step
java.lang.NullPointerException: null
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:404) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

workflow-model.JPGworkflow_archive.JPGaborted.JPG

Payload ist not shown for the Aborted job in the UI history. It appears to me like if the payload would not exist.

Avatar

Employee Advisor

Is it possible to connect over Zoom call and discuss the issue where we can check on screen sharing.

Avatar

Correct answer by
Level 8

Thank you very much @Nikita___Garg 

The issue is finally resolved. The cause was a change in the overlay for fileupload.js.

 

There I had to change the value from original "false" to "true".

damfileupload.fileUpload.parameters.push({
name: "createversion",
value: "true"
});