Skip to content

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

Description

@grantfitzsimmons

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions