HRA Model: TypeError: float() argument must be a string or a real number, not ‘NoneType’

Hello,
When I was running HRA I got some error messages. May someone help me? Thank you very much.

08/31/2023 10:32:45 natcap.invest.utils ERROR Exception while executing natcap.invest.hra
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 164, in prepare_workspace
File “invest\cli.py”, line 469, in main
File “natcap\invest\hra.py”, line 537, in execute
File “natcap\invest\hra.py”, line 2031, in _parse_criteria_table
TypeError: float() argument must be a string or a real number, not ‘NoneType’
08/31/2023 10:32:45 natcap.invest.utils INFO Elapsed time: 0.05s
08/31/2023 10:32:45 natcap.invest.utils INFO Execution finished

InVEST-natcap.invest.hra-log-2023-08-31–10_32_45.txt (1.6 KB)

Hi @LiaKusumawati , thanks for your post. There is likely a formatting problem in the criteria CSV table. There is an empty cell where there should be a value. This is usually due to some unexpected alignment of rows and columns. You can refer to the model’s sample data for a reference CSV. Or if you don’t see the issue feel free to upload the CSV here and we can take a look.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.