Cannot install Magento AEM Connector package - ConstraintViolationException | Community
Skip to main content
Jan 17, 2019 6:01 PM UTC
Solved

Cannot install Magento AEM Connector package - ConstraintViolationException

While installing the package on AEM 6.4 (build is fine), the following error shows up:

Full error:

[ERROR] Request failed: org.apache.jackrabbit.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0025: /apps/commerce/gui/content/catalogs/importblueprintswizard/importers[[nt:folder]]: Unexpected child node magento found in a new node (500)

Code snapshot:

I changed  sling:resourceType="/libs/granite/ui/components/foundation/layouts/well"  from sling:resourceType="/granite/ui/components/foundation/well"

The package has contents as below:

Related to this AEM 6.3 - Magento Connector Issue  (also tried as suggested but did not resolve)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Accepted solution
Jan 17, 2019 6:47 PM UTC

Thanks gauravb10066713​

I was able to fix this. So the updated was to change jcr:primaryType="sling:Orderedfolder" instead of jcr:primaryType="nt:unstructured".

Fixes:

1. Replace jcr:primaryType="nt:unstructured" with jcr:primaryType="sling:Orderedfolder" for jcr:root (line 3) for both the below files:

  • .content.xml file under /magento2-aem-connector-master 2/aem-connector/ui.apps/src/main/content/jcr_root/apps/commerce/gui/content/catalogs/importblueprintswizard/importers/magento/
  • .content.xml file under /magento2-aem-connector-master 2/aem-connector/ui.apps/src/main/content/jcr_root/apps/commerce/gui/content/products/importproductswizard/importers/magento/

2. Rebuild and install the package 'mvn clean install -PautoInstallPackage'

Check the repository.. nodes should have installed correctly:

5 replies

sainathr3599094
New Participant
Apr 8, 2019 10:10 PM UTC

Hi All,

I'm facing a problem to import product list from Magento to AEM. The error that I get during the import process is captured in the first screenshot. As you can see console log errors in the screenshot I do get the same errors when I import catalogs from Magento to AEM 6.4, however, the catalogs got imported, see the second screenshot

First screenshot:

Second screenshot:

Can somebody help how to resolve this issue.


Secondly, how can we import the we.retail sample catalog to Magento. Any instructions will be helpful.

Translate
New Participant
Feb 1, 2019 9:51 AM UTC

Hi Surenderakonathala,

                 Thanks for your post.Kindly change the

                                   jcr:primaryType="sling:Orderedfolder  to jcr:primaryType="sling:OrderedFolder ..now it will work,  Kindly share the step by step to integrate AEM6.4 with Magento2.3  Because there is no document ,your post going to save the time and it will helpful for aem developers.

Thank  you verymuch

Padmanabhan

Translate
Accepted solution
Jan 17, 2019 6:47 PM UTC

Thanks gauravb10066713​

I was able to fix this. So the updated was to change jcr:primaryType="sling:Orderedfolder" instead of jcr:primaryType="nt:unstructured".

Fixes:

1. Replace jcr:primaryType="nt:unstructured" with jcr:primaryType="sling:Orderedfolder" for jcr:root (line 3) for both the below files:

  • .content.xml file under /magento2-aem-connector-master 2/aem-connector/ui.apps/src/main/content/jcr_root/apps/commerce/gui/content/catalogs/importblueprintswizard/importers/magento/
  • .content.xml file under /magento2-aem-connector-master 2/aem-connector/ui.apps/src/main/content/jcr_root/apps/commerce/gui/content/products/importproductswizard/importers/magento/

2. Rebuild and install the package 'mvn clean install -PautoInstallPackage'

Check the repository.. nodes should have installed correctly:

Translate
smacdonald2008
Level 10
Jan 17, 2019 6:29 PM UTC

Try that suggestion made by  Gaurav Behl. Let us know the outcome.

Translate
Gaurav-Behl
Level 10
Jan 17, 2019 6:24 PM UTC

OakConstraint0025

Mandatory child node X not included in a new node

OakConstraint0025: /apps/commerce/gui/content/catalogs/importblueprintswizard/importers[[nt:folder]]: Unexpected child node magento found in a new node (500)

Try to create the folder - importers first may be manually, save it and then install the package or magneto node configuration and see if it works

Translate