After creating a custom report template in Survey123 and receiving no syntax errors, I attempt to run a sample report and get this error:
There is no 'value' field in my surveys, and strangely enough, I was able to actually generate a report several times before I began receiving this error. So I know that my templates work correctly. Why this error all of a sudden? Did I run into an issue on the Esri Cloud side?
I've attached the sample report that I got to generate correctly with my custom template, as well as the associated XLSX of the survey.
Apologies for the delay. This might be better diagnosed via Esri Support - aside from the form, there may also be something about the features or feature service as well.
Hi. I'm having this same issue with one of my templates. There is no field called 'value', in fact the word does not exist on the report template at all. I'm confident there is no issue with the template and this survey has a dozen or more similar templates associated with it that work correctly. Syntax is fine on upload.
Konrad Hughes did you get anywhere with this?
Make that 2 templates, the second of which worked correctly the first instance it was used...
Hey Matt Creaney,
I had a similar issue, and after receiving support from Esri Inc, it turns out the issue with my report template was that I had multiple image references on a single line. Separating them onto dedicated lines fixed the issue with that report template.
Unfortunately I now have another report template which was working fine previously, and as far as I can see it's not the same issue as I've checked all images within the template, so I'm uncertain the above will help, but it is worth checking.
It is a little frustrating that the report templates will be parsed correctly when uploaded, but these issues still appear to be a syntax issue. This is compounded by the fact the error response given by the Survey123 website has no useful information to troubleshoot the cause of the error.
Yes, with this particular issue it turns out that I had multiple image references on a single line. I agree that the parser should detect this issue really and it should have been documented and easy to find.
Other issues I've had are the "" and “” together in the same template causes the same error. Perhaps try this?
Thanks for your suggestion - that was exactly what was causing the issue. Hopefully other people find this post too!
I have experienced this as well. For me it originally seemed like an error with using a code that involved get value, but may not have actual data in the form..... Once I fixed that I still got the error message and simply saved a copy of my template (and added a"USE" at the end as is our standard) and it worked perfectly without any other manipulation. Hopefully this helps if anybody runs into it without having the picture portion in the template.