SAP Hybris impex import issues

2.3k views Asked by At

I'have an issues when import an impex on console administration HAC of SAP, issues is the below:

INSERT_UPDATE PlanogramStore;planogramCode[unique=true];storeRef[unique=true];branchOffice;endValidity[dateformat='dd-MM-yyyy', unique=true]
,,,,Exception : line 4: cannot create PlanogramStore with values ItemAttributeMap[ registry:  null, type: <null>, data: {storeref=952, branchoffice=1, endvalidity=null, planogramcode=15713} ] due to Argument mismatch trying to set value '1' for attribute de.hybris.platform.jalo.GenericItem.branchOffice (got java.lang.String, expected de.hybris.platform.store.BaseStore)., transaction rolled back because it has been marked as  rollback-only, Exception : line..

the item-core is this:

<itemtype code="PlanogramStore" autocreate="true" generate="false">
            <deployment table="PlanogramStore" typecode="21076"/>
            <attributes>
                <attribute type="java.lang.Integer" qualifier="planogramCode">
                    <modifiers/>
                    <persistence type="property"/>
                </attribute>
                
                <attribute type="java.lang.String" qualifier="storeRef">
                    <modifiers/>
                    <persistence type="property"/>
                </attribute>
            
                <attribute type="java.lang.String" qualifier="branchOffice">
                    <modifiers/>
                    <persistence type="property"/>
                </attribute>
                <attribute type="java.util.Date" qualifier="endValidity">
                    <modifiers/>
                    <persistence type="property"/>
                </attribute>
            </attributes>
            <indexes>
                <index name="PlanogramStoreIndex">
                    <key attribute="endValidity"/>
                    <key attribute="planogramCode"/>
                    <key attribute="storeRef"/>
                </index>
            </indexes>
        </itemtype>

Impex is below:

INSERT_UPDATE PlanogramStore;planogramCode[unique=true];storeRef[unique=true];branchOffice;endValidity[dateformat='dd-MM-yyyy', unique=true]
;15713;244;1
;15713;814;1
;15713;952;1

How is the problem? And how resolve it? Thanks.

0

There are 0 answers