Skip to Content
3
Jul 20, 2020 at 03:03 PM

Could not render [Null] using [com.hybris.cockpit.editor.defaultenum] editor

731 Views

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.

s1.png

If it is sent with one of the enum values in the CSV, Backoffice does not throw an error and it looks properly.

s2.png

How do I avoid getting this error in Backoffice?

Thank you so much for your help in advance.

Attachments

s1.png (117.2 kB)
s2.png (92.2 kB)