IndEcol / IE_data_commons

Code and documentation for a commons of structured industrial ecology data
MIT License
22 stars 2 forks source link

NOT NULL constraint fails when filling tables #26

Closed CBreton026 closed 1 year ago

CBreton026 commented 1 year ago

Dear @stefanpauliuk,

I am currently recreating a local version of the IEDC database. I have no problems creating the tables. However, when I try to fill the following tables using the 'IEDC_LooukupTable_fill' files, I encounter a 'NOT NULL constraint failed':

For units.unitcode, it is because the 'reserved' codes from the csv_files differ from those on the database website. There are also more records on the website.

I also encountered an exception in layers_data, where the 27th line of the .csv file has one too many fields (I removed a ';' to make it work).

To summarize, I have two questions:

stefanpauliuk commented 1 year ago

Good evening @CBreton026,

thanks for your message! There have been changes in the meantime indeed. The best solution is probably to give you read access to the current live version of the IEDC on our server so that you can create a local dump, or to share with you the latest backup/dump that you can then recreate the db from. Will send an email on that in a minute!

Cheers, Stefan