" is unopened" />
English

Error: The tag beginning with "<tag>" is unopened

Error Message

Attempts to upload a new feature report template in Survey123 for ArcGIS fail and return the following error message:

Error:   
Error: The tag beginning with "<tag>" is unopened.
Error message

Checking the syntax in the template by clicking Check syntax Check syntax in the feature report template window returns the same error message.

Cause

There is a syntax error in the field name code, ${fieldname}, in the feature report template, which is a Microsoft Word file that provides placeholder text with syntax. The following are possible causes for the error:

  • There is a space between the interpolated string ($) and the first curly bracket ({) in the field name code.
  • The interpolated string ($) is missing from the field name code.

Solution or Workaround

To circumvent the issue, edit the field name code in the Microsoft Word file to remove the syntax error. Depending on the cause, choose one of the workflows listed below:

Remove the space in the field name code

  1. Search for the field name code with a space between the interpolated string ($) and {fieldname}.
    1. In the Microsoft Word file, press Ctrl and F. Insert an interpolated string ($) and a space in the search box, and press Enter.
    2. Identify the field name code with a space between the interpolated string ($) and the first curly bracket ({).
Question $ {field_name}
Field name code without an interpolated string ($)
  1. Remove the space between the interpolated string ($) and {field name}.
Question ${field_name}
Space removed from the field name code
  1. Save the document, and upload the updated feature report template in Survey123 for ArcGIS.

Add an interpolated string ($) in the field name code

  1. Search for the field name code without the interpolated string ($).
    1. In the Microsoft Word file, press Ctrl and F. Insert a space and the curly bracket ({) in the search box and press Enter.
    2. Identify the field name code without the interpolated string ($).
Question {field_name}
Field name code without an interpolated string ($)
  1. Insert the interpolated string ($) before the curly bracket ({).
Question ${field_name}
Add the interpolated string ($) in the field name code
  1. Save the document and upload the updated feature report template in Survey123 for ArcGIS.

Below is a sample of a feature report template in a Microsoft Word file with the correct syntax.

Feature Report sample in a Word document

Related Information