on 07-20-2020 4:03 PM
Hello,
I fill the data in a field on Product in Backoffice with CSV. I keep the data that this field can receive in my enum.
..core-items.xml
<enumtypes>
<enumtype code="RegionalAssortmentFlagEnum" generate="true" autocreate="true">
<value code="PUSH" />
<value code="COMING_SOON" />
<value code="SWAP" />
<value code="STOP" />
<value code="VALIDATED" />
<value code="PHASE_OUT" />
<value code="NOT_ASSIGNED" />
</enumtype>
</enumtypes>
If this field is empty in CSV, I get the following error in backoffice. But when importing CSV there is no error, only this in Backoffice.
If it is sent with one of the enum values in the CSV, Backoffice does not throw an error and it looks properly.
How do I avoid getting this error in Backoffice?
Thank you so much for your help in advance.
Hi all,
I just faced the same issue, and found a solution for my case, I hope it can be of help...
In my case, the issue was generated by the following error:
No enum constant de.hybris.platform.basecommerce.enums.ConsignmentStatus.CANCELLING
The reason was that the extension "saporderexchangeoms", which defines the enum value above, was included and then removed. As a consequence, the enum value was removed from the datamodel but not from the database, which was causing the issue.
Running the following impex script
REMOVE ConsignmentStatus;code[unique=true]
;CANCELLING
did the trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
Did anyone figure this out?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , We are also facing the same issue in backoffice. Please respond to this chat if anybody have solution for this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.