How do I retrieve data from an orphaned survey?

1051
10
08-14-2018 11:55 AM
AndyZeigert
New Contributor II

What happened:

1. We've been developing several surveys on Survey123 and testing with beta users.

2. One of our users downloaded a "beta" survey to their device.

3. We then deleted that "beta" survey from arcgis online.

4. The user then (mistakenly) collected a bunch of data using the downloaded "beta" survey, which is now orphaned. "It says invalid URL when I try to sync."

Is there any way to retrieve that data from the device?

Tags (2)
0 Kudos
10 Replies
AndyZeigert
New Contributor II

I'm using Python 3.6.1. I tried pulling the latest version of your script and it stopped on the following:

Traceback (most recent call last):
  File "readDb.py", line 132, in <module>
    writeCSV(surveys, outDir)
  File "readDb.py", line 98, in writeCSV
    with open(addfile, 'w') as outFile:
FileNotFoundError: [Errno 2] No such file or directory: './out/survey_Wetland_Arid_Veg_Tree_Repeat_adds.csv'‍‍‍‍‍‍

Do I need to create the ./out directory or file first?

If it matters, I'm running this script on a mac running macOS 10.13.6.

Update: Actually, I just created the out directory and the script processed just fine. Looking over the CSVs now.

0 Kudos