Error Message
In some instances, when submitting a survey using the ArcGIS Survey123 app, the following error is returned:
Error:
Code 1000 Must declare the scalar variable "<variable>".
Cause
- Unable to identify the GlobalID
The ArcGIS Survey123 app is unable to identify the GlobalID field. This is a known limitation. - The ObjectID or GlobalID field contains upper case characters
This error occurs when the ObjectID or GlobalID field contains upper case characters. This is a known limitation. - Invalid field names in the XLSForm
There are invalid field names in the XLSForm of the survey when the survey is created.
Solution or Workaround
Based on the cause, the following solutions are applicable.
- Unable to identify the GlobalID
Upgrade to ArcGIS Survey123 2.3 or later, as this issue has been resolved. - The ObjectID or GlobalID field contains upper case characters
Ensure the ObjectID or GlobalID field only contains lowercase characters, or upgrade to ArcGIS Survey123 2.3 or later, as this issue has been resolved. - Invalid field names in the XLSForm
Ensure there are no invalid field names in the XLSForm. Remove any special characters such as $, %, and # from the field names in the XLSForm. For more information on invalid and unsupported characters in a field, refer to ArcGIS Online: Add a field.