0 votes
715 views

Hello,

I recently had to export my rather large database to OneDrive as I was changing laptops. I've re-downloaded the database onto the new laptop but when I attempted a 'restore database' I had an error that the database import failed. I then created a new database and attempted to 'Import entire database' to see if that worked, but the same error appeared (below). I found a previous Q&A mentioning that the zolca is a zipped file and can simply be extracted into the correct folder, which I did. However, this also doesn't seem to have worked. 
Please can someone tell me whether the file is corrupted or if I'm doing something wrong? I do still have the other laptop for now, so is there a safer way to export the database I need and then import to the new laptop (e.g. via a memory stick rather than online server)?
Thanks in advance!
58174472mainERRORorg.openlca.app.wizards.io.DbImportWizarddatabase import failed
java.lang.reflect.InvocationTargetException
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.run(DbImportWizard.java:186)
     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
    Caused by: org.zeroturnaround.zip.ZipException: java.util.zip.ZipException: error in opening zip file
     at org.zeroturnaround.zip.ZipExceptionUtil.rethrow(ZipExceptionUtil.java:11)
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:384)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:772)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:755)
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.connectToFolder(DbImportWizard.java:196)
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.run(DbImportWizard.java:181)
     ... 1 more
    Caused by: java.util.zip.ZipException: error in opening zip file
     at java.util.zip.ZipFile.open(Native Method)
     at java.util.zip.ZipFile.<init>(ZipFile.java:225)
     at java.util.zip.ZipFile.<init>(ZipFile.java:155)
     at java.util.zip.ZipFile.<init>(ZipFile.java:169)
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:362)
     ... 5 more 
in openLCA by (140 points)

1 Answer

0 votes
by (122k points)
Hi, the backup and restore functionality works quite fine typically, sometimes (especially when exporting large databases in web connections) the files get corrupted. So you could simply retry, if you suspect the connection also directly via USB stick.
...