cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot merge namespace, recipe installed is b2c_b2b_acc_oms

0 Kudos

After creating extension through module gen(test extension) and following the below steps 1) Add your extension to your D:\TestHybris\hybris\config/localextensions.xml

2) Remove the following extensions from your D:\TestHybris\hybris\config/localextensions.xml yacceleratorfulfilmentprocess,yacceleratorcore,yacceleratorfacades,yacceleratortest,yacceleratorinitialdata,yacceleratorcockpits,yacceleratorstorefront

getting the following error

BUILD FAILED D:\TestHybris\hybris\bin\platform\build.xml:20: The following error occurred while executing this line: D:\TestHybris\hybris\bin\platform\resources\ant\compiling.xml:88: The following error occurred while executing this line: D:\TestHybris\hybris\bin\platform\resources\ant\antmacros.xml:795: The following error occurred while executing this line: D:\TestHybris\hybris\bin\platform\resources\ant\antmacros.xml:798: java.lang.IllegalArgumentException: cannot merge namespace ((testcore)) into (()) due to duplicate attribute 'ApparelProduct.genders(GenderList):((testcore))::YAttributeDescriptor[testcore-items.xml:50(AttributeTagListener)][PROPERTY]' vs 'ApparelProduct.genders(GenderList):((yacceleratorcore))::YAttributeDescriptor[yacceleratorcore-items.xml:50(AttributeTagListener)][PROPERTY]' at de.hybris.bootstrap.typesystem.YNamespace.mergeNamespace(YNamespace.java:297) at de.hybris.bootstrap.typesystem.YTypeSystem.mergeNamespaces(YTypeSystem.java:82)

please suggest how do i fix this error. items.xml of yacceleratorcore and testcore(my extension's items.xml) contains GenderList collection type.

Accepted Solutions (1)

Accepted Solutions (1)

former_member620692
Active Contributor

Since you have already commented/removed yacceleratorcore, you need to check if there is an extension in your localextensions.xml which depends on yacceleratorcore; because if it is the case, hybris will still try to load yacceleratorcore even if you have not declared it in localextensions.xml.

If you have already imported the extensions in ee, using a file search for the text <requires-extension name="yacceleratorcore"/>, you can quickly find it out. If you find any such extension, you need to remove/comment it in localextensions.xml. My guess is that you have yacceleratorbackoffice in your localextensions.xml and if it is, please remove/comment it.

Another reason can be that you might have created another extension based on yacceleratorcore, included it in the localextensions.xml and forgot to remove/comment it.

Answers (1)

Answers (1)

0 Kudos

Thank you, it works !! :)

former_member620692
Active Contributor
0 Kudos

You are most welcome.