ERROR

ArcGIS Survey123: Initializing form... TypeError: o.split is not a function

First Published: September 30, 2026
Last Published: September 30, 2026

Error Message

A survey is successfully published from ArcGIS Survey123 Connect to ArcGIS Online. However, when the published survey is opened in a web browser, the form returns the following error:

Error:   
Error: Initializing form…
TypeError: o.split is not a function
The error message

Cause

The error message is returned when an invalid expression or value is specified in the constraint column. This can occur when:

  • A text question type is configured with a numeric value, such as '5', in the constraint column.
  • The maximum number of characters allowed for a text response is specified in the constraint column instead of the bind::esri:fieldLength column.

Solution or Workaround

Depending on the cause, the workarounds provided are applicable.

Use a valid constant expression

  1. In ArcGIS Survey123 Connect, open the survey’s XLSForm.
  2. In the survey worksheet, locate the row containing the invalid value in the constraint column.
  3. In the type column, select the appropriate question type from the drop-down list. In this example, integer is selected.
  4. In the constraint column, specify a valid constraint expression. The constraint must contain an expression that allows Survey123 to evaluate and validate the response. Refer to ArcGIS Survey123: Constraints for more information. In this example, regex(., '^\d{5}$') is used to require the response to contain exactly five digits.
The question type configuration
  1. Save and close the XLSForm.
  2. In the survey window, click Publish to republish the survey.

Specify the maximum number of characters in the bind::esri:fieldLength column

  1. In ArcGIS Survey123 Connect, open the survey’s XLSForm.
  2. In the survey worksheet, locate the row of the text question and remove the numeric value from the constraint column.
  3. Scroll right to the bind::esri:fieldLength column and specify the preferred maximum number of characters.
  4. Save and close the XLSForm.
  5. In the survey window, click Publish to republish the survey.

Article ID: 000043477

Software:
  • ArcGIS Online
  • ArcGIS Survey123 Connect
  • ArcGIS Survey123 Website

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options