Hello all,
I am using the solution suggested by Ismael in this post to calculate the next highest value in the idlong field.

There are no error messages but the value that is being produced is 401 (in ArcGIS Survey123 Connect) instead of 18320972.
Any clue what I could be doing wrong?
Thanks for your help!