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

Cannot use Data Exporter when a mapping returns records with no version information #1235

Open
grantfitzsimmons opened this issue Nov 15, 2023 · 0 comments
Labels

Comments

@grantfitzsimmons
Copy link
Member

grantfitzsimmons commented Nov 15, 2023

Whenever I attempted to Build / Update a schema mapping that included Accessions, it would fail. A dialog would show this:

java.util.concurrent.ExecutionException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of edu.ku.brc.specify.datamodel.DataModelObjBase.version

I fixed this by using this SQL command (specific to this case):

UPDATE accession SET `Version` = 0 WHERE Version IS NULL;

It should be able to handle these instances.

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

No branches or pull requests

1 participant