0

I am trying to create a Survey 123 that checks whether the submitted address is within a polygon, and then sends an automated response to the form submitter either accepting (within polygon) or rejection (outside polygon) their request.

I have been able to successfully connect to our portal, and point to the survey I am trying to download. Using the conent.get

survey_by_id = gis.content.get(survey_item_id)

When trying to download this data into shapefile form I get an error saying access is denied. Is this a permissions issue or is their something wrong with my code?

dl_formats = ['Shapefile']
for f in dl_formats:
    outfile = survey_by_id.download(f, r"filepath")
    print(outfile)

I have tried downloading in shapefile, CSV, and file geodatabase formats. And have used several string formats for my save destination, including \ and / with a r in front and without.

Screenshot of my code and error message

0 Answers0