Data import exception: "Error while importing the data: Can't find setter for property '(name of a transient property)' at class

I’m setting up another data import configuration, and this one is giving me:

08:03:45.849 ERROR d.d.c.d.s.GenericDataImporterServiceBean- Error while importing the data: Can't find setter for property 'rawCssForBackgroundColor' at class com.medflex.medflexj.entity.visittype.VisitType
java.lang.IllegalArgumentException: Can't find setter for property 'rawCssForBackgroundColor' at class com.medflex.medflexj.entity.visittype.VisitType

Where VisitType is the entity class I’m importing and rawCssForBackgroundColor is a transient property. This property is not referenced in the import (… because it’s transient…) so I don’t know why the add-on is looking for a setter for it!

Hi,

Can you share a sample app with a sample import config to reproduce the problem?

Thanks
Mario

Sure thing. Here’s the test project, the JSON files to define the import config, and the CSV file to attempt it on. This will produce the exact same Exception I mentioned.

importissue.zip (84.7 KB) 136.json (745 Bytes) 136-map.json (3.8 KB) jmc-136.csv (5.8 KB)

Hi,

thanks for the bug report.

I have created a fix. It is included in version 0.13.0: GitHub - mariodavid/cuba-component-data-import: CUBA component for easy data import

Cheers
Mario