AEM 6.4 post upgrade issue on Packages | Community
Skip to main content
vijaym76986902
Level 2
Jul 19, 2019 10:23 AM UTC
Solved

AEM 6.4 post upgrade issue on Packages

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:"

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vijaym76986902
vijaym76986902Accepted solution
Level 2
Jul 29, 2019 8:04 AM UTC

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.

4 replies

vijaym76986902
vijaym76986902AuthorAccepted solution
Level 2
Jul 29, 2019 8:04 AM UTC

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.

Translate
Employee
Jul 22, 2019 1:21 PM UTC

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

Translate
vijaym76986902
Level 2
Jul 21, 2019 6:33 PM UTC

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.

Translate
Employee
Jul 19, 2019 2:01 PM UTC

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

Translate