Package installation error | Community
Skip to main content
Level 2
April 7, 2017

Package installation error

  • April 7, 2017
  • 4 replies
  • 8921 views

Hi All,

We are facing the below issue on installing our code package in AEM 6.1 

"javax.jcr.nodetype.ConstraintViolationException: OakConstraint0021:  Mandatory property jcr:data not found in a new node ".

If any one has come across this issue. Please suggest how to fix it.

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Prince_Shivhare
Community Advisor
Community Advisor
April 7, 2017

Hi,

Can you please check this issue raised in GitHub:

https://github.com/adamcin/net.adamcin.recap/issues/7

The issue appears to be in Oak. https://issues.apache.org/jira/browse/OAK-2052 describes the issue. Adobe released CQ-6.0.0-HOTFIX-5659 in December which has resolved the issue in my local testing. If you cannot install the hotfix, a workaround for AEM 5.6 to 6.0 migrations is to install Recap in the AEM 5.6 environment and perform the same transfer with the Reverse option checked, to push the content to the AEM 6.0 environment.

check if this can help yours.

~ Prince

kshanAuthor
Level 2
April 7, 2017

Thanks for your reply. But am facing this issue in AEM 6.1 and not sure if any hotfix is available for it.

Hemant_arora
Level 8
April 7, 2017

Please share logs. Try to remove the node from the package on which it is throwing error.

Now create a custom node and add a property jcr:data.

Also check your code , there must be a custom xtype which requires the jcr:data type property. Remove the constraint on this property

smacdonald2008
Level 10
April 7, 2017

Please provide more details about this package - was it built from past versions of AEM. THere are many variables that can account for this. 

Adobe Employee
August 30, 2018

If packaging users, try adding this filter:

exclude /home/users/.*/.tokens

Otherwise, the .token may be from some other content (consult error log)

Reference: https://helpx.adobe.com/experience-manager/kb/OakConstraint0027-error-when-migrating-users-and-groups-in-AEM.html

kautuk_sahni
Community Manager
Community Manager
September 7, 2018

Try:

1. Try creating package with below exclude filters:

/home/users/a/admin

/home/users/a/anonymous

/home/users/.*/.tokens

2. Look at this answer:-Filevault OakConstraint0021 exception when copy content

3. Also, Try removing the error causing node and install the package [Do make sure that you backup what you delete].

Kautuk Sahni