cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member575294
Discoverer

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

francescoalagna
Discoverer
0 Kudos

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.

ravi_hybris
Explorer
0 Kudos

Hey,

Did anyone figure this out?

geffchang
Active Contributor
0 Kudos

What Hybris patch are you using?

ravi_hybris
Explorer
0 Kudos

Hi Geff,

I'm using 1905 - Patch 20

ravi_hybris
Explorer
0 Kudos

Hey, Any suggestions?

0 Kudos

Hi , We are also facing the same issue in backoffice. Please respond to this chat if anybody have solution for this issue.