"" />
English

Error: Code 1000 Must declare the scalar variable "<variable>"

Error Message

In some instances, when submitting a survey using the Survey123 for ArcGIS app, the following error is displayed:

Error:
Code 1000 Must declare the scalar variable "<variable>".
Screenshot of the error.

Cause

There are several causes that can lead to this error:

  • Unable to identify the GlobalID
    The Survey123 for ArcGIS 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 Survey123 for ArcGIS 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 Survey123 for ArcGIS 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 the following ArcGIS Help: Add a field.

Related Information