Package installation error

Avatar

Avatar

krithikar545354

Avatar

krithikar545354

krithikar545354

07-04-2017

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.

 

 

 

Replies

Avatar

Avatar

Prince_Shivhare

Avatar

Prince_Shivhare

Prince_Shivhare

07-04-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

Avatar

Avatar

krithikar545354

Avatar

krithikar545354

krithikar545354

07-04-2017

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

Avatar

Avatar

Hemant_arora

Avatar

Hemant_arora

Hemant_arora

07-04-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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

07-04-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. 

Avatar

Avatar

MatthewLaun

Employee

Avatar

MatthewLaun

Employee

MatthewLaun
Employee

29-08-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-group...

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

07-09-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].