We experienced an interesting behavior. We were unable to publish surveys to ArcGIS Enterprise from Survey123 Connect. However, we were able to publish from Web Designer.
We were receiving a "504 Gateway Time-out." Our Azure engineer informed us the Application Gateway timeout was set to 20 seconds.
The issue was with the ".../addToDefinition" URL for the feature service. The feature service was being published, but not the form item.
After changing it to 120 seconds, we were able to publish from Survey123 Connect.
Is there a recommended timeout value that we should have set for our ArcGIS Enterprise/Survey123 environment?
For reference, logs from Survey123 Connect are below:
<10>1 2024-10-17T15:37:25Z DHPEMERAW76ZB5L ArcGISSurvey123Connect 14136 - [AppStudio@11205 category="PortalRequest" function="onErrorTextChanged" filename="PortalRequest.qml" line="135"] PortalRequest: portalRequest: https://domain.redacted/server/rest/admin/services/Hosted/service_4d0f6bac66a944019253a7baad7a7530/F... error: Error transferring https://domain.redacted/server/rest/admin/services/Hosted/service_4d0f6bac66a944019253a7baad7a7530/F... - server replied: Gateway Time-out
<10>1 2024-10-17T15:37:25Z DHPEMERAW76ZB5L ArcGISSurvey123Connect 14136 - [AppStudio@11205 category="PortalRequest" function="onReadyStateChanged" filename="PortalRequest.qml" line="121"] PortalRequest: PortalRequest status: 504 504 Gateway Time-out
<10>1 2024-10-17T15:37:25Z DHPEMERAW76ZB5L ArcGISSurvey123Connect 14136 - [AppStudio@11205 category="PortalRequest" function="onFailed" filename="PortalRequest.qml" line="149"] PortalRequest: PortalRequest failed url: https://domain.redacted/server/rest/admin/services/Hosted/service_4d0f6bac66a944019253a7baad7a7530/F... error: {
"code": 504,
"message": "504 Gateway Time-out"
}
I think this is a "Each environment is different" type thing. I don't think you will find "recommended server settings" for that. Find what works for you and go with it.
EDIT: May be worth mentioning. This is also dependent on what you are publishing. I have some surveys that publish in a couple seconds. And a few that take over a minute to publish because they are absolutely massive. You may need to increase the timeout period in the future depending on what you need to publish.
The thing that takes the longest seems to be images that we use for help. We have forms with like 60 images in some. We took a lot of time to reduce the file size as much as possible using online jpeg reducers. Helped a lot and no loss in quality for most images.
Also being off of VPN to get full internet speed can help if that is possible for you.
Other times it just hangs and times out for no real reason.
Hope that helps a little