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

Cannot change parameters

Open degensroel opened this issue 1 year ago • 2 comments

I cannot change values for parameters in my project. Every time I try to change a parameter's value I get the following pop-up:

image

I am using the development version and have the latest version installed.

Setting up a scenario file and change parameters there for a scenario LCA does work.

degensroel avatar Aug 10 '22 10:08 degensroel

This is a duplicate of #618.

Unfortunately, parameters are rather unstable. Somewhere, somehow, AB lost track of a parameter that it still thinks exists, and it will keep giving this error indefinitely. The fastest workaround is to export the database and create a new project to continue in that.

Parameters are high on the list to get some proper attention, but it will be a while unfortunately.

Sorry for your trouble.

marc-vdm avatar Aug 10 '22 11:08 marc-vdm

I fixed this kind of problem by deleting the activity parameter group creating issues from the different tables of the parameters.db file.

To access that database -> C:/Users/YOUR_USERNAME/AppData/Local/pylca/Brightway3/ and then select the folder of your bw project. The AppData folder is hidden by default, but you can navigate to it by pasting it in the address bar of your file explorer.

You can read the parameters.db file using this program: https://sqlitebrowser.org/

Then you delete the parameter group causing the issue using a simple SQL statement:

image

MaximeAgez avatar Aug 10 '22 17:08 MaximeAgez