Problem with the coastal vulnerability model

Hi, im using this model in my final university project and i have a lot of doubts.

KeyError encountered: ‘‘Illegal field requested in GetField()’’
2021-04-22 19:38:11,304 coastal_vulnerability.calculate_geomorphology_exposure(2070) INFO Build spatial index of geomorphology segments
Traceback (most recent call last):
File “site-packages\taskgraph\Task.py”, line 747, in add_task
File “site-packages\taskgraph\Task.py”, line 1234, in _call
File “site-packages\natcap\invest\coastal_vulnerability.py”, line 2077, in calculate_geomorphology_exposure
File “site-packages\osgeo\ogr.py”, line 4451, in GetField
KeyError: ‘Illegal field requested in GetField()’
2021-04-22 19:38:11,315 model._logged_target(1652) ERROR Exception while executing <function execute at 0x0000021C0D94E948>
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\model.py”, line 1649, in _logged_target
File “site-packages\natcap\invest\coastal_vulnerability.py”, line 544, in execute
File “site-packages\taskgraph\Task.py”, line 747, in add_task
File “site-packages\taskgraph\Task.py”, line 1234, in _call
File “site-packages\natcap\invest\coastal_vulnerability.py”, line 2077, in calculate_geomorphology_exposure
File “site-packages\osgeo\ogr.py”, line 4451, in GetField
KeyError: ‘Illegal field requested in GetField()’
2021-04-22 19:38:11,316 model._logged_target(1655) INFO Execution finished
2021-04-22 19:38:11,318 utils.prepare_workspace(129) INFO Elapsed time: 2m 18.650000000000006s

What´s happening? How can i fix it?

Hi @garvox ,

Thanks for posting and welcome to the NatCap forums! Could you please attach the generated logfile from your workspace directory? That text file will give us a lot more information about what might be going on.

Thanks!

Doug

1 Like