Hello - I have a string value that consists of three data elements that are separated by a space then comma. Essentially looks like "workorder ,siteID ,fqnid". I intend on populating their individual fields with their coordinating element using the Split() function. I had a test feature where I sorted this all out, and it worked flawlessly. Now I'm trying to deploy to the field collection devices and I'm getting errors (*sigh* 🙄 love GIS)
Runtime Error: Out of Bounds
First set of code to get the workorder element, which does work:
var concat = split($feature["WO_SiteID_FQNID"], " ,")
return concat[0]
Perfect! Until...I try to write the next two elements into their coordinating fields SiteID and FQNID, it fails. The coding is identical except for which element I'm pulling [1] or [2]
'out of bounds' seems to imply that I don't have data in that second or third position, but I definitely do.

Any help would be greatly appreciated!!
Thanks