Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.4 post upgrade issue on Packages

Avatar

Avatar
Validate 1
Level 2
vijaym76986902
Level 2

Likes

2 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
vijaym76986902
Level 2

Likes

2 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
vijaym76986902
Level 2

19-07-2019

Post upgrade from AEM 6.2 with SP2 to AEM 6.4 few of the packages are in not installed. The older version is on installed state.

For the new package is showing the message as "A different version seems to be installed:"

Package.png

When i am trying to install manually i am getting the error javax.jcr.nodetype.ConstraintViolationException: OakConstraint0074: Attempt to add, modify or remove the system maintained property 'rep:externalId' and the package is not able install.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
vijaym76986902
Level 2

Likes

2 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
vijaym76986902
Level 2

Likes

2 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
vijaym76986902
Level 2

29-07-2019

This is because of upgrade is not done properly. During the upgrade few packages is not upgraded from older version to new version due to javax.jcr.nodetype.ConstraintViolationException. This is because of custom code has updated 'rep:externalId' to the users and system user in the AEM 6.2 instance. During the upgrade this properly in the System user creates javax.jcr.nodetype.ConstraintViolationException. So i have deleted this property from system user before upgrade. This works for the above problem. 

**Note :** Since Oak 1.5.8 the system-maintained property rep:externalId is protected and can not be altered using regular JCR and Jackrabbit API, irrespective of the permission setup of the editing session.

Answers (3)

Answers (3)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

22-07-2019

Yes, please install the CFP before upgrade and post here if this is still an issue

Avatar

Avatar
Validate 1
Level 2
vijaym76986902
Level 2

Likes

2 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
vijaym76986902
Level 2

Likes

2 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
vijaym76986902
Level 2

21-07-2019

I am upgrading from AEM 6.2 [6.2.0.SP1] to AEM 6.4. Do i need to install CFP package before upgrade. Post upgrade SP5 installation also didn't fix the problem.

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

19-07-2019

I don't believe SP2 was released for 6.2.Also, in the upgrade plannig, there is a following note which provdes the minimum patch details required to perform a successfull upgrade.

If you are upgrading from AEM 6.2 to 6.3, you should EITHER upgrade from versions (6.2-SP1-CFP1 - -6.2SP1-CFP12.1) or 6.2SP1-CFP15onwards. Otherwise, if you are upgrading from 6.2SP1-CFP13/6.2SP1CFP14 to AEM 6.3, you must also upgrade to at least version 6.3.2.2. Otherwise, AEM Sites would fail after upgrading.

[1] Planning Your Upgrade