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

Cannot install Magento AEM Connector package - ConstraintViolationException

Avatar

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
SurendraKonatha
Level 2

17-01-2019

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"

Screen Shot 2019-01-17 at 12.20.05 PM.png

The package has contents as below:

Screen Shot 2019-01-17 at 11.56.55 AM.png

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
SurendraKonatha
Level 2

17-01-2019

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:

Screen Shot 2019-01-17 at 12.40.49 PM.png

Answers (4)

Answers (4)

Avatar

Avatar
Level 1
sainathr3599094
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
sainathr3599094
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
sainathr3599094
Level 1

08-04-2019

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:

1729159_pastedImage_1.png

Second screenshot:

1729166_pastedImage_2.png

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.

Avatar

Avatar
Boost 1
Level 1
padmanabhang315
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
padmanabhang315
Level 1

Likes

2 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
padmanabhang315
Level 1

01-02-2019

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

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

17-01-2019

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

Avatar

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

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

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile
Gaurav-Behl
MVP

17-01-2019

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