CSS and JavaScript assets remain in Processing in AEM Assets

CSS and JavaScript files uploaded to an Adobe Experience Manager (AEM) Assets folder remain in the Processing state and can’t be published. The issue occurs when a custom Processing Profile or Dynamic Media workflow applies media-processing steps to technical assets that don’t require image or video processing. To fix this, review the MIME type filters, folder-level Processing Profiles, workflow launchers, and Dynamic Media configuration, and exclude CSS and JavaScript files from media-oriented processing.

Description description

Environment

  • Adobe Experience Manager Assets as a Cloud Service
  • Asset Compute Microservices
  • Dynamic Media
  • Custom Processing Profiles

Issue/Symptoms

  • You upload a CSS or JavaScript file to a DAM folder, but the file remains in the Processing state and can’t be published.
  • You see the issue with both new and existing CSS or JavaScript files.
  • You don’t see the same issue with image or video files.
  • You see the issue in one environment but not in another environment with similar files and folder structures.

Cause

A custom Processing Profile or Dynamic Media workflow includes broad MIME type patterns, such as */*, text/*, or application/*. As a result, CSS and JavaScript files are selected for media-oriented processing even though they don’t require image or video processing. The files don’t complete the applicable processing workflow and remain in the Processing state.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review the Processing Profiles:

    1. In AEM, go to Tools > Assets > Processing Profiles.
    2. Review each custom Processing Profile. Exclude the built-in standard profile from this review.
    3. Check the included MIME types. If the profile contains broad patterns such as */*, text/*, or application/*, restrict the media-specific profile to image/*, video/*, or both, as required.
    4. In the excluded MIME types, add text/css and application/javascript so that the profile skips these assets.
    5. Open the affected DAM folder.
    6. Open Folder Properties > Processing Profiles and confirm that only the appropriate media-oriented profiles are applied.
    7. If a custom profile includes text/css or application/javascript, correct its MIME type filters or remove the profile from the affected folder.
  2. Check the Dynamic Media workflows and configuration:

    1. Go to Tools > Workflow > Launchers.
    2. Review launchers with workflow model names that include dynamic-media-reupload or Dynamic Media.
    3. Check the path configured for each launcher. If a launcher applies to the affected DAM folder, review its conditions.
    4. If a launcher applies to all assets under the configured path without a MIME type filter, restrict it to image/*, video/*, or both, as required.
    5. In AEM Assets, open the properties of the affected DAM folder.
    6. Under Cloud Configuration, check whether a Dynamic Media configuration is applied.
    7. If the CSS and JavaScript assets don’t require Dynamic Media, store them in a folder without a Dynamic Media configuration or adjust the configuration as required.
  3. Align the configuration with a working environment:

    • Compare the Processing Profiles and Dynamic Media configurations with another environment where the issue doesn’t occur, and align the configuration as required.
  4. Test and verify the changes:

    • Upload a CSS or JavaScript file to the affected folder.
    • Verify that the asset completes processing and can be published.
recommendation-more-help
experience-cloud-kcs-help-kbarticles