Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import data for complex key entity #132

Open
aruna0990 opened this issue Nov 1, 2018 · 3 comments
Open

Unable to import data for complex key entity #132

aruna0990 opened this issue Nov 1, 2018 · 3 comments

Comments

@aruna0990
Copy link

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
Copy link
Owner

Hi,

Will take a look.

Bye

@aruna0990
Copy link
Author

Any update on this?

@mariodavid
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants