I’m having trouble saving a configuration on that data import add-on. I get the following exception thrown after I select to save configuration for later reuse and then start the import (full log of the error is also attached):
com.haulmont.cuba.core.sys.ServiceInterceptor - Exception:
java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: de.diedavids.cuba.dataimport.entity.UniqueConfiguration-634a9785-664f-e78d-e42f-96317c3bc974 [new]
It looks like it should be working, I created a test project and made sure the add on link was right when adding it to the project this time and still got the same error. I’m not sure what may be going wrong, all I’m doing is going to the import wizard and following these steps
1.) select the file to upload (an excel file)
2.) select the test entity I created
3.) set it to direct attribute for type
4.) set the transaction strategy to per entity
5.) go to the unique configurations tab and create a policy to update existing entity
6.) go to the save configuration tab to check in the box to save for later use
7.) start the import
8.) import works until I click okay to finish the process which is when the error comes up
I got it to work, if I don’t create a unique configuration in the import wizard but still save for reuse then create the unique configurations I need after, it works.
I got the same error at saving the configuration, but since I have my CUBA project at platform v 6.10.15, I can’t use data import version 0.9. Is there any chance to have this issue fixed for the 6.10 version too ? CUBA studio does not allow me to use any other version.
Hi @mario, I’ve just tried the latest version of the Data Import add-on (0.14.1), and I have the same error (constraint violation).
Maybe a regression?
I’ll investigate further, but I wanted to ask if you are already aware of this or not (the related issue is closed on GH, so maybe it’s a recent regression).