Resolve ConstraintViolationException on DAM image profile node during AEM as a Cloud Service deployment

This article describes how to address deployment pipeline failures in Adobe Experience Manager (AEM) as a Cloud Service that are caused by a ConstraintViolationException related to a DAM image profile node in a content package.

Description description

Environment

Adobe Experience Manager (AEM) as a Cloud Service (all versions)

Issue/Symptoms

  • The Cloud Manager deployment pipeline fails during the content package installation step.

  • The logs display a javax.jcr.nodetype.ConstraintViolationException with a message such as:

    javax.jcr.nodetype.ConstraintViolationException: No matching node definition found for <custom-image-profile-node>

  • The problematic node is located under /conf/global/settings/dam/adminui-extension/imageprofile/<custom-image-profile-node> in the content package.

  • As a result, the pipeline aborts and the publish queue may become blocked.

Cause

This issue occurs when a custom DAM image profile node in the content package does not comply with the required node type structure. AEM enforces strict node type definitions, and any deviation from the expected structure or missing mandatory properties or child nodes will result in a ConstraintViolationException during package installation.

Resolution resolution

Follow these steps to resolve the issue:

  1. Review the configuration of the problematic node:

    • Inspect /conf/global/settings/dam/adminui-extension/imageprofile/<custom-image-profile-node> in your content package or in your AEM Cloud Service environment.
    • Compare its structure and properties to a working DAM image profile node under the same path.
  2. Correct the node structure:

    • Ensure that <custom-image-profile-node> matches the required DAM image profile node type, including all mandatory properties and child nodes.
    • If you are using custom node types, verify that they are properly defined and registered before installing the content package.
  3. Rebuild and redeploy the content package:

    • Update your content package with the corrected node configuration.
    • Test the package installation locally to ensure the ConstraintViolationException is resolved.
    • Re-run the Cloud Manager deployment pipeline. The pipeline should complete successfully if the package installs cleanly and the queue is unblocked.
  4. To verify the resolution, confirm that:

    • The deployment pipeline completes without errors.
    • The DAM image profile node is present and functional in AEM.
recommendation-more-help
experience-cloud-kcs-help-kbarticles