English

Error: Unable to create a new survey. {"code":-1,"message":"","isTrusted":true}

Error Message

Attempts to create a new survey in Survey123 for ArcGIS using ArcGIS Enterprise credentials return the following error message:

Error:   
Unable to create a new survey. {"code":-1,"message":"","isTrusted":true}
Error message

Despite the error, an item is created but attempts to open it return the following error message:

Error:   
The survey does not exist or is not accessible.
Error message.

Further attempts to delete the item fail, and return the following error message:

Error:   
Failed to delete. undefined: Invalid account
Error message.

Cause

ArcGIS Server is configured to trust only certain domains instead of the default wildcard (*) value. The Survey123 for ArcGIS domain (https://survey123.arcgis.com) is not added in the list of allowed origins.

Solution or Workaround

To resolve this issue, refer to the workflow described in ArcGIS Server: Restrict requests from Javascript applications. In the AllowedOrigins field, add https://survey123.arcgis.com.

The image below shows the ArcGIS Server Administrator Directory page after the edit is made.

An image of the ArcGIS Server Administrator Directory page.


 

Related Information