KeyError: '-1' Generate Matrix

Hi
I’m trying to generate an matrix but I can’t run the command, I always get an error like:

“Traceback (most recent call last):
File “C:/Users/Ricardo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\proc\matrix_proc.py”, line 197, in processAlgorithm
destination_field = source.fields().field(destination_field_id)
KeyError: ‘-1’”

I was able to run the algorithm using the same points using direction from points.

Hi,
oops, I’ll create an issue and amend. It’s really just a typo, but it makes it unusable for now if you specify a destination layer different from the source layer.

Sorry for that.

Cheers
Nils

Fixed and uploaded to the plugin repo. Should be available within the day.

This was quick, thank you. I’ll wait for the new version

Oh, it’s approved since a few days. You should be able to upgrade right now, v1.0.2.