We are doing a project using Survey123.
One of the benefits of using Survey123 is that we can use the associated REST service to do integrations with other functionality. For instance are we right now building an automatic PDF report generator that would generate a report for each survey. It uses the REST api to for instance match coded domain values.
However, we updated some choice lists in Survey123 Excel. This update dosent seem to update the Rest service - even after republishing the service.
The choice list [list_ok] had originally only one choice option [OK] and was published. Now we updated it with 4 in choices in total.
After re-publishing the survey through Survey123, the rest service isent updating its coded values - See inspect_* - it only contains choice0: OK
Does anyone have an idea on why the coded values arent updated?
We use ArcGIS Enterprise 10.6.1 on premise for the entire setup and Survery123 Version 184.108.40.206
For select_one questions the domain values are created in the feature service when the survey is first published, however the domain is not updated on subsequent modifications to the choices in the survey. The workarounds are to manually add the domain values to the existing feature service in ArcGIS Online, or publish the survey again from scratch to create a brand new feature service.
The ability to update the domain when republishing from Survey123 Connect has been raised as an enhancement. I'll add your post to our internal discussion and update this thread when we have more information.
Thanks for quick answer - and thanks for taking my case along.
The proposed workaround that you link to are only available through ArcGIS Online. Portal dosent have that option yet (at least to my knowledge). So do you suggest that we update the coded values directly through the REST api instead? Or is there any other more sufficient methods available?
We cannot publish the service again from scratch as we have too many dependencies on the service and the ItemID.
Apologies, I overlooked that you're using Enterprise. Updating the domain values via the REST API should work (ensuring the values match the choices in the XLSForm of the republished survey). Advise that you proceed with caution and back up your data before making the changes. Please let us know if you have any queries.
Lars, I downloaded the tool but see a lot of different options, although none of them specifically describe the ability to update domains. Can you tell me which tool you used?
Its been a while since i worked with it - but try going into different menues. As i remember it, the update domain tool is in manage data or equal (cant remember the name perfectly..)