DAM asset stuck in Processing state with custom workflow in AEM

This article describes how to resolve an issue where a DAM asset remains in the Processing state on the publish instance after being uploaded through a custom workflow in Adobe Experience Manager (AEM).

Description description

Environment

  • Adobe Experience Manager Assets, self-managed or on-premises
  • Red Hat Enterprise Linux
  • AEM Author and Publish instances
  • Custom DAM upload and activation workflow

Issue/Symptoms

  • You upload an asset through a custom workflow, but the asset remains in the Processing state on the Publish instance.
  • You see the affected asset remain in that state for an extended period.
  • You see other assets, including smaller images, process and publish successfully through the same workflow.
  • You see that the affected asset is larger than the assets that process successfully.
  • You don’t find an active or failed workflow instance for the asset in the workflow console.
  • You don’t find a clear workflow or processing error in the Author or Publish error logs.
  • You see the Processing state clear after manually running the out-of-the-box DAM Update Asset workflow on the affected asset.
  • You see that the custom workflow primarily activates the asset after upload.

Cause

The custom workflow doesn’t complete all DAM processing required before it activates the asset. As a result, the asset remains in the Processing state even though no active workflow instance is visible. The fact that manually running DAM Update Asset clears the state indicates that one or more standard asset-processing operations are missing from the custom workflow. The asset size or structure can contribute to the behavior, but this relationship must be confirmed through testing and logs.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Use the repository and workflow diagnostic tools available in the self-managed AEM environment to confirm whether the affected asset is associated with the DAM Asset Processing State Workflow.
  2. Review the workflow console for active, failed, suspended, or stale workflow instances associated with the affected asset.
  3. Review the Author and Publish error logs for the affected upload timeframe and identify any asset-specific workflow, rendition, metadata, replication, or processing errors.
  4. Upload a different image, preferably a smaller file, through the same custom workflow and compare its processing behavior with the affected asset to determine whether the issue is asset-specific.
  5. In the self-managed AEM environment, manually run the out-of-the-box DAM Update Asset workflow on the affected asset and confirm that the workflow completes and clears the Processing state.
  6. Review the custom workflow model and confirm that it performs all required DAM processing before activating the asset. If the workflow omits required processing, update it to invoke the necessary asset-processing workflow or supported processing steps before the activation step.
  7. Validate the updated custom workflow in a non-production environment with the previously affected asset and a representative set of smaller and larger assets.
  8. After deploying the validated workflow update, confirm that uploaded assets finish processing, clear the Processing state, and publish successfully without requiring manual execution of DAM Update Asset.
recommendation-more-help
experience-cloud-kcs-help-kbarticles