mariodavid / cuba-component-data-import

CUBA component for easy data import
Apache License 2.0
20 stars 15 forks source link

Unable to import data for complex key entity #132

Open aruna0990 opened 6 years ago

aruna0990 commented 6 years ago

Complex_Key_Issue.zip Hi,

Facing the exception when trying to import data for a entity which has complex primary key. I have attached the following:

  1. project zip file.
  2. word doc with screenshots of the issue faced
  3. sample data used for uploading
  4. stackTrace for the issue.

I am not able to export the JSON object from entity inspector like you asked, it is giving an error related to the complex key. I have attached that screen shot as well in the word document.

Regards, Aruna import data exception:

java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager: 
Exception Description: Problem compiling [SELECT e FROM complexkey$CustomerCompKey e where e.customer = :propertyValue]. 
[14, 40] The abstract schema type 'complexkey$CustomerCompKey' is unknown.
[49, 59] The state field path 'e.customer' cannot be resolved to a valid type.
mariodavid commented 6 years ago

Hi,

Will take a look.

Bye

aruna0990 commented 5 years ago

Any update on this?

mariodavid commented 5 years ago

hi,

i've recently released the 0.8.0. Contentwise nothing changed regarding this issue. But in the README I created a section that describes a little bit the limitations and how I when using this addon normally handle these cases. Perhaps this helps you also in your case: https://github.com/mariodavid/cuba-component-data-import#import-limitations