Custom Workflow to Publish page to Preview
Hello, I have a custom workflow created that will publish a page to the Preview instance. This workflow is using the TreeActivation process with the Handler Advance checked and the following arguments: enableVersion=true,agentId=preview,includeChildren=false
This normally functions fine for content updates. But any asset updates are not picked up and pushed to the Preview instance. It displays a broken image.
I attempted to create a Workflow Launcher but it is running multiple times on the asset before it finishes processing.
I have a screen capture of the workflow launcher and the workflow models attached. As well as a log file that displays something about the jcr:content/metadata.
11.03.2026 15:31:19.071 [cm-p------e--------aem-author-668fd857c6-rrzjs] *ERROR* [sling-threadpool-8685bd4f-0ae6-48c7-b09f-bcbb858297cc-(apache-sling-job-thread-pool)-6-DM Publish queue(dam/scene7/asset/activation)] com.day.cq.dam.scene7.impl.utils.Scene7AssetPublishUtils Repository exception during Scene7 asset activation
javax.jcr.InvalidItemStateException: OakState0001: Unresolved conflicts in /content/dam/crown/images/home-page/2022/new-image-here.jpg/jcr:content/metadata
at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:238) [org.apache.jackrabbit.oak-api:1.88.0.T20251029163355-5d5086d]
at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:213) [org.apache.jackrabbit.oak-api:1.88.0.T20251029163355-5d5086d]
at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:745) [org.apache.jackrabbit.oak-jcr:1.88.0.T20251029163355-5d5086d]
at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:559) [org.apache.jackrabbit.oak-jcr:1.88.0.T20251029163355-5d5086d]
at org.apache.jackrabbit.oak.jcr.session.SessionImpl$9.performVoid(SessionImpl.java:460) [org.apache.jackrabbit.oak-jcr:1.88.0.T20251029163355-5d5086d]
at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:306) [org.apache.jackrabbit.oak-jcr:1.88.0.T20251029163355-5d5086d]
at org.apache.jackrabbit.oak.jcr.session.SessionImpl.save(SessionImpl.java:457) [org.apache.jackrabbit.oak-jcr:1.88.0.T20251029163355-5d5086d]
at com.day.cq.dam.scene7.impl.utils.Scene7AssetPublishUtils.setMetadataPublishState(Scene7AssetPublishUtils.java:516) [com.day.cq.dam.cq-scene7-core:5.13.526]
at com.day.cq.dam.scene7.impl.utils.Scene7AssetPublishUtils.persistPublishStateInJcr(Scene7AssetPublishUtils.java:225) [com.day.cq.dam.cq-scene7-core:5.13.526]
at com.day.cq.dam.scene7.impl.utils.Scene7AssetPublishUtils.activateDamS7Assets(Scene7AssetPublishUtils.java:84) [com.day.cq.dam.cq-scene7-core:5.13.526]
at com.day.cq.dam.scene7.impl.listener.Scene7ActivationJobConsumer.process(Scene7ActivationJobConsumer.java:165) [com.day.cq.dam.cq-scene7-core:5.13.526]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:556) [org.apache.sling.event:4.4.0]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:379) [org.apache.sling.event:4.4.0]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.4.0]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:306) [org.apache.sling.event:4.4.0]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakState0001: Unresolved conflicts in /content/dam/crown/images/home-page/2022/new-image-here.jpg/jcr:content/metadata
Any help would be appreciated. I have very limited access to the admin section of AEM.


