Hello all,
my question/post related to https://community.esri.com/t5/arcgis-survey123-questions/quot-the-insert-statement-conflicted-with-the-foreign-key/td-p/881815 and https://community.esri.com/t5/arcgis-survey123-blog/st-kilda-penguin-release-3-1/bc-p/1051542
My apology for essentially triple posting - I just would really appreciate some help/advice/suggestions.
Here my problem again:
I still struggle with BUG-000117394 "The INSERT statement has conflicted with the FOREIGN KEY constraint" error (see attached screenshot).
I followed the following work flow:
- Create survey form in Survey123 Connect, have a GUID field with esri field type GUID
- Publish the survey form
- Create an empty point, line, and polygon feature class in AGOL.
- Download the survey feature class as well as the three other feature classes (point, line, polygon) and house in a geodatabase
- Make sure the point, line and polygon feature class has GlobalIDs and add unique Attribute indexes to it.
- Create three relationship classes between survey layer and each of the three other layers, where the point, line and polygon layer is the origin table, and the survey layer is the destination table based on GlobalID & GUID fields with 1:M.
- Upload the survey layer to AGOL - the three related feature layers get uploaded with it automatically.
- Add the survey layer to an editable web map - the three related feature layers get added to the map automatically.
- edit the pop-up of all three feature layers (point, line, polygon) and insert the survey form link&field:GUID={GlobalID). The survey link that can be found in "Collaborate" on the Survey123 website for the respective survey.
- Test the whole thing using ArcGIS Collector - I am accessing said web map, create a feature, e.g., using the point feature layer. Once feature is created, click on it to show pop-up, then click on survey link.
- Survey opens.
- Fill out survey & submit - but then attached error message appears.
I initially created the survey using Survey123 3.9, but I re-published using the latest version. Any ideas what I am doing wrong? One thing I am not entirely sure about is: I might have added the attribute index to the GlobalDs AFTER creating the relationship classes. would that matter at all?
Thanks a lot for the help.
