Hello,
I am trying to populate a field with the latest observation in a repeat field. I tried to follow the instructions provided here, but I am receiving an error message (see below).
Here is my XLSForm

And here is the error message



Any help would be appreciated. Thanks!