AEM Author fails to start due to repoinit ConstraintViolationException
This article explains how to resolve an issue where an Adobe Experience Manager (AEM) Author instance fails to start due to a ConstraintViolationException triggered by a repoinit script attempting to set a property that lacks a matching property definition.
Description description
Environment
Adobe Experience Manager (AEM)
Symptoms
- When deploying a new repoinit script in AEM, the Author instance fails to start if the script tries to set a property on a repository node where no matching property definition exists.
- This results in a
ConstraintViolationExceptionerror in the logs, such as: Unable to set properties on path[
Resolution resolution
Follow the steps below to resolve the issue:
- Identify the repoinit script responsible for the error by reviewing the AEM error logs for messages indicating a
ConstraintViolationExceptionrelated to a property being set. - Temporarily remove or move the problematic repoinit script out of the inclusion path so that AEM can start successfully.
- Review the repoinit script and verify that any property being set has a corresponding property definition in the target node type.
- Update the repoinit script or the repository node type definitions to ensure that all properties being set are valid and defined.
- Redeploy the corrected repoinit script.
- Restart the AEM Author instance, and verify that it starts without errors and is accessible.
recommendation-more-help
experience-cloud-kcs-help-kbarticles