Error when adding task create target vector, NDR model

Hello Community,
I have been trying to implement the NDR model but get the attached error indicating: taskgraph.Task ERROR Something went wrong when adding task create target vector (0), terminating taskgraph…

I have used all of the same input layers in some of the other InVEST models (water yield and SDR), so it does not seem to be an issue with the layers themselves. I have also tried to implement the model on another laptop since I thought the error could be the result of some other software installed on my primary laptop. This did not work.

Any advice would be much appreciated!

All input files could be downloaded from here: DOWNLOAD INPUT FILES

Thank you!

InVEST-natcap.invest.ndr.ndr-log-2024-11-23–19_36_42.txt (3.2 KB)
:outbox_tray: button

Hi @ESM , thanks for posting this error and sharing your data. Sorry it’s taken a little while to respond.

The problem is an unfortunate small detail in the attribute table of the watersheds vector. There is some text there that is not being parsed correctly due to a special character in the text field. If you remove the ADM0_ES field of that layer, it should work.

Sorry about that. The model is simply trying to copy your input dataset to a new layer, and in its attempt to preserve all the data in the table, it encountered this error. We’ll try to make invest more resilient to this in the future.

1 Like

Brilliant, thank you very much, Dave!

I eliminated the indicated field and the model now solves.

Much appreciated!

ESM.

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