I have a Survey123 survey built in Connect and published to AGO. The survey has a geoshape question that is not required. I have created a custom report template that includes the geoshape answer. The report fails to generate for survey records with no value for the geoshape with the error:
"An error occurred when rendering by the report engine. Failed to print map for ${submission_polygon}. Connection timed out after 120000ms."
The report generates successfully for survey records that have a geoshape value.
I have tried to add a conditional statement in the report template that would exclude the geoshape answer if it were empty like this:
${if submission_polygon}
${submission_polygon}
${/}
However, this generates the report without the map shown whether there is a geoshape answer or not.
Is there a way to generate the report for both survey records that have a geoshape and do not have a geoshape?
thanks.