I receive an error everything I submit a Survey123 form that is accessed through a URL link within Map viewer.
This is the URL link being used
"arcgis-survey123://?itemID=<itemID>:GUID={GlobalID}"
The link has the item ID for the form in Portal.
The form pulls the Global ID data to the GUID within the form as it should, but has an error when I submit the form. Below is an image of the error received:
I have created this same form within AGOL as well and it works correctly. I've made sure all the settings in the form are the same and have the same set up. When I submit the form from the field app the survey works in Portal, just not through the link. I suspect it has something to do with the link but I'm not sure what could be wrong. or if there is a setting missing for the form.
Thanks in advance 🙂
I've got a couple ideas about what could be happening, but if I were you I'd go into your S123 settings, under Diagnostics turn on logging, and try to submit another survey. Once you do that, if you can email the log file to yourself you should be able to get a clearer picture of what's happening.
I have a couple lines in the debugging that I had noticed:
<12>1 2024-09-11T22:07:27Z PC16566 ArcGISSurvey123 19388 - [AppStudio@11205 category="default"] QSqlDatabasePrivate::removeDatabase: connection '{a8a9502c-5fa3-4727-a74d-ae4c9b0ecef4}' is still in use, all queries will cease to work.
<10>1 2024-09-11T22:07:36Z PC16566 ArcGISSurvey123 19388 - [AppStudio@11205 category="PortalRequest" function="onFailed" filename="PortalRequest.qml" line="147"] PortalRequest: PortalRequest failed url: https://uatgisportal.saskenergy.net/arcgis_map/rest/services/Vegetation_Control_Inspection/FeatureSe... error: {
"code": 500,
"details": [],
"message": "Error performing apply edits operation"
}
<15>1 2024-09-11T22:07:36Z PC16566 ArcGISSurvey123 19388 - [AppStudio@11205 category="XFormFeatureService" function="onFailed" filename="XFormFeatureService.qml" line="810"] XFormFeatureService: applyEdits error: {
"error": {
"code": 500,
"details": [],
"message": "Error performing apply edits operation"
}
}
<15>1 2024-09-11T22:07:36Z PC16566 ArcGISSurvey123 19388 - [AppStudio@11205 category="qml" function="onFailed" filename="SurveyFolderPageOutbox.qml" line="378"] qml: Feature service error: {
"code": 500,
"details": [],
"message": "Error performing apply edits operation"
}
Taking note of the database connection is still in use and will cease to work.
I'm not sure what I need to change exactly. I have built this same feature class and survey in AGOL and it works just fine. I'm not sure if it's a portal thing or not. I noticed that the survey will submit fine when using the desktop app.
But when the survey is access through a pop-up on a map ( arcgis-survey123://?itemID=1c90564d82d24ca5a7ada82ca8dc4314&field:GUID={GlobalID} ) is when I get this error.
I think it has to do with the link but I'm not sure what it is.