dbptk-developer icon indicating copy to clipboard operation
dbptk-developer copied to clipboard

Import SIARD-DK and export to SIARD-2 fails

Open PhillipTommerholt opened this issue 4 years ago • 1 comments

When I import SIARD-DK and export to SIARD2 it fails. Tables are exported but there are problems exporting schema.

C:\WINDOWS\system32>java "-Dfile.encoding=UTF-8" -jar "C:\Program Files (x86)\Database Preservation Toolkit\dbptk-app-2.8.2.jar" migrate -i SIARD-DK -if "D:\AVID.SA.18001.1" -ias dbo -e siard-2 -ef "D:\Vildtregisteret3.siard"
      Converting database: siard-dk to siard-2
      Initializing database
      Importing SIARD version dk
      Exporting SIARD version 2.1
      Obtained database structure
      Exporting database structure
      Migrating schema 'dbo' (-1 of 1 schemas completed)
      Migrating table 'AGG' (0 of 3 tables completed)
      Completed table 'AGG' (1 of 3 tables completed)
      Migrating table 'AMT_kode' (1 of 3 tables completed)
      Completed table 'AMT_kode' (2 of 3 tables completed)
      Migrating table 'ART_kode' (2 of 3 tables completed)
      Completed table 'ART_kode' (3 of 3 tables completed)
      Completed schema 'dbo' (0 of 1 schemas completed)
ERROR Fatal error while converting the database (Error while Marshalling JAXB)
      Log files and migration reports were saved in C:\Program Files (x86)\Database Preservation Toolkit
      Troubleshooting information can be found at http://www.database-preservation.com/#troubleshooting
      Please report any problems at https://github.com/keeps/db-preservation-toolkit/issues/new

Attach the dbptk-app.log.txt file below. dbptk-app.log.txt

PhillipTommerholt avatar May 06 '20 13:05 PhillipTommerholt

According to the log when trying to write the SIARD 2 metadata.xml file an error occurred building the view metadata. Could you please check the views on SIARD-DK file to see if some of them have some structural problem?

The content of element 'view' is not complete. One of '{"http://www.bar.admin.ch/xmlns/siard/2/metadata.xsd":columns}' is expected.

hmiguim avatar May 14 '20 17:05 hmiguim