ERROR

Failed to save. Cannot read property 'success' of undefined

Last Published: April 27, 2022

Error Message

Attempts to save changes in the sharing settings of the survey form in the ArcGIS Survey123 website fail, and return the following error message:

Error:   
Failed to save. Cannot read property 'success' of undefined.
The error message when saving changes in the sharing settings of the survey form in the ArcGIS Survey123 website.

Cause

The error occurs when the content size in the media folder of the survey is larger than 10 MB.

Note:
The media folder is located in C:\Users\<user>\ArcGIS\My Survey Designs\<survey id>\media.
Location of the media folder for the survey in the machine.

Solution or Workaround

It is possible to resolve the error by removing some files from the media folder so it does not exceed 10 MB. However, these files may be necessary and cannot be removed. In this case, use one of the methods below.

In new surveys

  1. Design a new survey without adding the large sized files in the media folder, and publish the survey.
  2. Open the survey form in the ArcGIS Survey123 website, and click the Collaborate tab.
  3. In the Share survey section, make the necessary changes to the sharing settings. Click Save.
The Share survey section in the Collaborate tab
  1. Copy the large sized files to the media folder.
  2. Republish the survey from ArcGIS Survey123 Connect.

With existing survey forms

Update an existing survey

  1. Move the large sized files from the media folder to a different location.
  2. Republish the survey.
  3. Open the survey form in the ArcGIS Survey123 website, and click the Collaborate tab.
  4. In the Share survey section, make the necessary changes to the sharing settings. Click Save.
  5. Move the files back to the media folder.
  6. Republish the survey from ArcGIS Survey123 Connect.

Create a new survey

  1. Create a copy of the existing survey in ArcGIS Survey123 Connect. Refer to ArcGIS Survey123: Copy or delete a survey for more information.
  2. Move the large sized files from the media folder to a different location.
  3. On the Settings tab of the XLS form of the survey, add the form ID and submission URL. The form ID is the layer name in the hosted feature service, and the submission URL is https://www.arcgis.com/sharing/rest/content/items/<itemID>. This ensures new submissions are directed to the original hosted feature layer, and existing submissions are retained.
The Settings tab of the XLS form of the survey.
Note:
Alternatively, export the existing submissions from the original hosted feature layer as a file geodatabase (FGDB), and append the existing data to the hosted feature layer of the new survey. Refer to How To: Append data to a Survey123 for ArcGIS survey from an existing survey with related tables for more information.
  1. Publish the survey.
  2. Open the survey form in the ArcGIS Survey123 website, and click the Collaborate tab.
  3. In the Share survey section, make the necessary changes to the sharing settings. Click Save.
  4. Move the files back to the media folder.
  5. Republish the survey from ArcGIS Survey123 Connect.

Article ID: 000024203

Software:
  • ArcGIS Online
  • ArcGIS Survey123 Website

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options