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?
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?
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
Make sure Monitor matches exactly as it appears in your Survey123 form schema (case-sensitive).
Check for hidden typos or trailing spaces.
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.
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.
Although “Monitor” is a simple name, check for any non-standard characters (e.g., Unicode issues) if it was copy-pasted.
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?