Skip to Content
0
Nov 04, 2019 at 11:40 AM

ItemPropertyValue error while updating in hot folder impex translator

81 Views Last edit Nov 04, 2019 at 12:20 PM 3 rev

Hi All

I have written a translator in the hot folder impex spring configuration that translates a long value to a type value (fetches data from the db) and sets it in the ItemPropertyValue. The code in the translator looks like this:

if (soldToList != null && !soldToList.isEmpty()) {

return soldToList.get(0) != null ? new ItemPropertyValue(soldToList.get(0).getPk()) : null;

}

This is working fine when there is an INSERT however, it fails when there is an update with the following exception:

,,,,Argument mismatch trying to set value 'PropertyValue:8796289945422' for attribute com.abc.core.jalo.ABCCBLine.wholesaler (got de.hybris.platform.util.ItemPropertyValue, expected com.abc.core.jalo.ABCSoldToAccount).

Anybody has got a similar issue and knows how to resolve it?

Regards,

V