marktstammdatenregister-dev / mastr

Werkzeuge für den Umgang mit dem Marktstammdatenregister-Gesamtexport
MIT License
8 stars 2 forks source link

Unable to open database "marktstammdatenregister.db": file is encrypted or is not a database #55

Open fleimgruber opened 6 months ago

fleimgruber commented 6 months ago

Using

./mastr -export ../Gesamtdatenexport_20240320_23.2.zip -spec spec/Gesamtdatenexport.yaml -database marktstammdatenregister.db

with stdout:

...
EinheitenGasverbraucher.xml
3421379 validation error(s) found.
Killed

and

sqlite marktstammdatenregister.db

gives

Unable to open database "marktstammdatenregister.db": file is encrypted or is not a database

Is this due to the 3421379 validation error(s) found.?

curiousleo commented 2 weeks ago

Hm, I think the "Killed" is the issue here. Validation errors are just informational, they should have no impact on the resulting database.

I'm not sure why the process got killed. Perhaps it ran out of memory?

curiousleo commented 2 weeks ago

I actually re-implemented the logic in Python in this project: https://github.com/curiousleo/mastr-export

The usage instructions are in the README. It may work better for you.