Assets remain in Processing when DAM Update Asset fails in AEM 6.5 LTS

This article describes how to address an issue in Adobe Experience Manager (AEM) LTS SP2 where assets remain in the processing state because the DAM Update Asset workflow fails due to a legacy workflow step.

Description description

Environment

  • Adobe Experience Manager Assets 6.5 LTS
  • AEM 6.5 LTS Service Pack 2
  • DAM Update Asset workflow
  • Deployment package delivered through Cloud Manager

Issue/Symptoms

  • You upload assets to the DAM, but they remain in the Processing state and don’t complete ingestion.
  • You see the DAM Update Asset workflow fail while processing the assets.
  • You see a Product Asset Upload step in the workflow model.
  • You see asset processing recover after removing the step and synchronizing the workflow, but the step returns after the next deployment.

Cause

The deployment package contains a copy of the standard DAM Update Asset workflow model with an additional Product Asset Upload step, identified by productassetuploadprocess. Each deployment restores the unintended step. If the implementation doesn’t use the Product PIM or Commerce integration required by that step, the workflow fails and leaves uploaded assets in the Processing state.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Confirm whether the organization intentionally customized the DAM Update Asset workflow and whether the implementation uses Product PIM or Commerce integration. Remove the Product Asset Upload step only when the implementation doesn’t require that integration.
  2. Update the deployment package filters to exclude /conf/global/settings/workflow/models/dam/update_asset/ and /var/workflow/models/dam/update_asset, and remove the corresponding standard workflow content from the package so that future deployments don’t overwrite the workflow. Retain the filters and content for custom workflows required by the implementation.
  3. Deploy the corrected package to the AEM 6.5 LTS environment through the applicable Cloud Manager deployment process.
  4. Sign in to the AEM Author instance as an administrator and go to Tools > Workflow > Models.
  5. Open the DAM Update Asset workflow model and confirm whether it contains the Product Asset Upload step identified by productassetuploadprocess.
  6. If the implementation doesn’t require Product PIM or Commerce integration, remove the Product Asset Upload step from the workflow model.
  7. Save and synchronize the updated workflow model to regenerate its runtime copy under /var/workflow/models/dam/update_asset.
  8. Go to Tools > Workflow > Instances, identify running or failed instances of the DAM Update Asset workflow, and terminate only the confirmed stuck instances to clear the processing backlog.
  9. Upload a test asset and confirm that the DAM Update Asset workflow completes successfully and that the asset moves out of the Processing state.
  10. Run another deployment in the lower environment and confirm that the Product Asset Upload step doesn’t return and that asset processing continues to complete successfully.
  11. After validating the correction in a Development or Stage environment, promote the updated deployment package to Production.
recommendation-more-help
experience-cloud-kcs-help-kbarticles