I'm using QGIS 3.16 Hannover. I've got a hexagon grid layer and I want to create, with the field calculator, a new field with the id's of the surrounding polygons. I've adapted the following expression from this tutorial:
aggregate( layer:='grid',
aggregate:= 'concatenate',
expression:= "id",
filter:= touches($geometry,geometry(@parent)),
concatenator:=', ')
But it returns an error
An error occurred while evaluating the calculation string:
Could not calculate aggregate for: id
Why is that?