AnsweredAssumed Answered

What is the best method to automate the download Survey123 data?

Question asked by JPC_Planning on Dec 13, 2019
Latest reply on Dec 17, 2019 by j.moore-esristaff

We have a number of Survey123 forms and I'm looking at the best way to back them up/download them. I have experimented with Microsoft Flow webhooks and this looks like one good method to hold a backup, albeit quite fiddly with the initial set up (where there are a lot of fields in a survey). I'm particularly looking to script the download of all of the surveys and hold timestamped geodatabase backups. I have found the following script at the end of this url which looks fit for purpose:

 

View your results—Survey123 for ArcGIS | Documentation 

 

However, whenever I try to run this script I get the following error:

 

...Starting
...Authenticating against your Portal
...Exporting data

Traceback (most recent call last):
File "C:\DownloadSurvey123Data.py", line 78, in <module>
exportItemId = export_data['exportItemId']
KeyError: 'exportItemId'

 

No matter what itemid I use, I get the same error so I know that this isn't related to one particular feature class. Any help with this would be massively appreciated! I'm drawing a blank trying to get it to run.

 

Thanks in advance!

Outcomes