specify/specify6

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

grantfitzsimmons opened this issue · 0 comments

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.