cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change field name of enumtype after it created already?

0 Kudos

Hi experts.

I got an error "Caused by: java.lang.IllegalArgumentException: No enum constant blabla~~~" this morning.

Not too long ago, one of my colleague added several fileds to enumType and changed the name of one of them.

The old field name was 'webconsumer' and changed name is 'social'.

So I investigated enumerationvalues db table, I found that old value 'webconsumer' is stil remaining.

If I delete the row(webconsumer) in enumerationvalues directly then problem can be solve?

In hybris, Is it possible to change field name of enumtype after it created already?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

I found the solution.

Other itemType's field referred to an old enum field.

It was a cause of the error.

I updated the field of itemType to new enum value, finally problem was solved.