activity-browser icon indicating copy to clipboard operation
activity-browser copied to clipboard

Fail Excel import/export

Open MaximeAgez opened this issue 1 year ago • 2 comments

Hi,

Lately I've had a lot of failing exports when trying to share my databases with colleagues. Here is the error I get:

image

I think I traced the origin of the problem. For some reason, ecoinvent processes exported through an Excel have the "classifications" column appear as full of nans

image

These nans create an issue when the data is create in peewee, because the code in bw2data/backends/peewee/proxies.py is looking for a key of an empty object (I assume it's empty because classifications are nans)

image

I am fairly confident it's the origin of the problem because I created a test database in which I only exported an ecoinvent process (ecoinvent3.8) and tried to re-import it into another project, but on the same machine, same AB and it still failed.

I'm using AB 2.6.9 and bw2data 3.6.5

MaximeAgez avatar Aug 01 '22 18:08 MaximeAgez

Thanks for letting us know.

Could you let us know if this also happens when exporting to .bw2package format? I'm aware this doesn't export parameters and may not be a solution for you, but will help us narrow down the issue.

@cmutel further thoughts? This looks like it may be something in BW2

marc-vdm avatar Aug 02 '22 06:08 marc-vdm

No problem with the .bw2package format.

MaximeAgez avatar Aug 02 '22 14:08 MaximeAgez