Select to view content in your preferred language

Survey123 Create Sample Report Template Fails; Error Code 504

1631
17
Jump to solution
02-27-2025 01:14 PM
TommyBarnes
Occasional Contributor

I am trying to create a report for a survey that has approximately 40 records. 

When I try to create a sample template in manage templates, I receive an error message that states, “An error occurred while saving the report template” The error code is 504.

I was able to create a sample report template in two other surveys, so the issue is with this survey.

A web search for the error code has been less than helpful.

If you have run across this issue before any advice would be appreciated.

Screenshot 2025-02-27 153652.png

0 Kudos
17 Replies
Ruth_JiatengXu
Esri Contributor

Hi @TommyBarnes @PanjiBrotoisworoIntrax @CherylWheeler11 ,

The fix for this issue is available on the production environment.

Thanks,

Ruth

CherylWheeler11
Regular Contributor

Hi @Ruth_JiatengXu  - I wonder, is there a similar problem this week. We are getting a timeout error on all our devices and surveys today. Are you aware of any issues?

0 Kudos
TommyBarnes
Occasional Contributor

My issue was caused by changes in Survey123.   I had used an old survey as a starting point and the newest version of 123 didn't like some of the statements in the old survey.  Once I started building from scratch in the current version of Survey123 connect the issues went away.   the 504 error code seems to be a generic code that says something is wrong, but we don't know exactly what.

0 Kudos
Ruth_JiatengXu
Esri Contributor

Hi @TommyBarnes ,

Thanks for your reply. If possible, please share your survey or XLSForm with us, my email is jxu@esri.com.

If not, could you try reproducing the error on our BETA website survey123beta.arcgis.com, and let us know the job ID? This will help us review the error log and investigate further.

Thanks,

Ruth

0 Kudos
Ruth_JiatengXu
Esri Contributor

Hi @CherylWheeler11 

Does the issue occur in a newly created survey? If not, could you share your survey or XLSForm with us, my email is jxu@esri.com.

Thanks,

Ruth

0 Kudos
TommyBarnes
Occasional Contributor

My issue was caused by changes in Survey123.   I had used an old survey as a starting point and the newest version of 123 didn't like some of the statements in the old survey.  Once I built from scratch in the current version of Survey123 connect the issues went away and I was able to re-publish the survey with no issues.   

The 504 error code seems to be a generic code that says something is wrong, but we don't know exactly what.

0 Kudos
CherylWheeler11
Regular Contributor

Thanks Ruth. It is odd because it seems to be first thing on a Friday morning 0800GMT, it all seems broken, but then, a couple of hours later (10am GMT) and doing nothing, it all works again. I wondered if there are updates that occur on a weekly basis with AGOL/S123 which may take time to take effect?

0 Kudos
Ruth_JiatengXu
Esri Contributor

Hi @CherylWheeler11 ,

It looks like our server instance was down at that time but restarted automatically afterward.

Thanks,

Ruth

0 Kudos