SAP Knowledge Base Article - Preview

2234540 - How to add additional unique keys to any existing core item / (uniqueKeyAttributeQualifier) / Duplicate identifiers tool in hMC-hybris

Symptom

For example, in Duplicate Identifiers tool in hMC/Catalog/Catalog Management Tools , the identifier of Price Row is defined as :Product,Unit,Product Price Class,Customer Price List,Scale,Pricing,Customer,Currency

screenshot as below

444.png

 

If you want to change the uniqueKeyAttribute in {yourextesion}-items.xml code as below to change the defination:

<itemtype code="PriceRow" autocreate="false"    generate="true">
<custom-properties><property name="uniqueKeyAttributeQualifier">
<value>"product,pg,user,ug,unit,minqtd,currency,net"</value>
</property></custom-properties></itemtype>

 

After ant all, error will be as below

Problem: can’t change uniqueKeyAttributeQualifier in {extension}_item.xml

Caused by: java.lang.IllegalStateException: custom property 'uniqueKeyAttributeQ

ualifier' of PriceRow::((europe1))::YComposedType[europe1-items.xml:228(ItemType

TagListener)] already set to '"product,pg,user,ug,unit,minqtd,currency,net" - ca

nnot set to '"product,pg,user,ug,unit,minqtd,currency,net"'


Read more...

Environment

hybris with hMC 5.x

Product

SAP Commerce all versions

Keywords

KBA , CEC-COM-CPS-CKP , Cockpits & hMC , CEC-COM-CPS-CAS , Catalog & Sync , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.