Select to view content in your preferred language

Error code from generating report when it is correct.

97
2
Monday
KeishFieldSurvey
New Contributor

I am working to generate a report from a generated arcgis template form. All the fields should be correct from the sample. However, I am receiving this error message, "An error occurred when checking the report template. Failed to parse ${Monitor} since it is an invalid expression." Monitor is the correct name for the name column. Why is this coming up as an invalid expression when the name of the data title is correct? 

2 Replies
j-bromp
Frequent Contributor

Hi @KeishFieldSurvey , are you using repeats? if so have you opened the repeat correctly in the template? otherwise maybe the capitalisation is bugging it out?

0 Kudos
ileadsileads
New Contributor

The error message:

"An error occurred when checking the report template. Failed to parse ${Monitor} since it is an invalid expression."

typically points to a syntax or context issue in the ArcGIS Survey123 report template, not necessarily a problem with the field name itself.

Here’s how to troubleshoot and resolve this issue:


Checklist for Fixing ${Monitor} Parsing Error

  1. Confirm Field Name Is Exact
    • Make sure Monitor matches exactly as it appears in your Survey123 form schema (case-sensitive).

    • Check for hidden typos or trailing spaces.

  2. Check the Report Template Context
    • If ${Monitor} is used outside a repeat section but is actually inside a repeat, or vice versa, it will error.

    • For fields inside repeats, the syntax should be:

      ${#YourRepeatName}
      Monitor: ${Monitor}
      ${/YourRepeatName}
    • If Monitor is not in a repeat, ensure you're not using repeat tags around it.

  3. Test with Known Working Fields
    • Try replacing ${Monitor} with a field you know works (e.g., ${SurveyDate}).

    • If other fields work, the issue is likely structural or related to repeats.

  4. Remove or Replace Special Characters
    • Although “Monitor” is a simple name, check for any non-standard characters (e.g., Unicode issues) if it was copy-pasted.

  5. Check the XLSForm / Feature Service
    • Use Survey123 Connect or ArcGIS Online to preview the data schema.

    • Verify that Monitor is a valid field in the feature layer, and not renamed in the feature service.


 Pro Tip:                                                                                                                                      insurance leads

Try running a simple template with only ${Monitor} outside of any other formatting. Example:

Monitor: ${Monitor}

If this works, then incrementally add complexity (repeats, tables, etc.) to isolate where the issue starts.


Still stuck?

If you're comfortable sharing:

  • A snippet of your report template, especially around where ${Monitor} is used

  • Whether Monitor is in a repeat group

  • How it appears in the XLSForm

I can help diagnose more specifically.

Would you like to paste part of the template?

0 Kudos