ERROR

Can’t use this feature layer due to an unknown error

Last Published: December 22, 2023

Error Message

When selecting a feature layer in ArcGIS QuickCapture through an ArcGIS Enterprise feature service, the following error is returned:

Error:   
Can’t use this feature layer due to an unknown error
Please try again. If the error persists, please contact Esri Support.
The error message, Cant use this feature layer due to an unexpected error is returned.

Cause

  • The ‘Allow access to the portal through HTTPS only’ option is disabled in Portal for ArcGIS.
  • The ArcGIS URLs are blocked by the Cross-Origin Resource Sharing (CORS) policy.
  • The ArcGIS URLs are blocked in ArcGIS Enterprise.

Solution or Workaround

Depending on the cause, follow one of the workarounds below.

Enable HTTPS-only communication for the portal

Enable the Allow access to the portal through HTTPS only option in Portal for ArcGIS. Refer to Portal for ArcGIS: Configure HTTPS for further instructions.

Create URL exceptions in the organization

Contact the IT department to create URL exceptions in the organization for the following URLs:

https://www.arcgis.com
https://www.arcgis.com/apps/quickcapture
https://quickcapture.arcgis.com

Create exceptions in the ArcGIS Server settings

Note: 
Only administrators are able to perform the following workaround.
  1. Log in to the ArcGIS Server Administrator Directory.
  2. Click Home > system > handlers > rest > servicesdirectory.
  3. In the Services Directory page, click edit.
  4. In the Edit Services Directory page, for the AllowedOrigins field, type the following URL.
https://quickcapture.arcgis.com
  1. Click Save.
The Edit Services Directory configuration.
  1. Repeat Steps 3 through 5 using the following URLs.
https://www.arcgis.com
https://www.arcgis.com/apps/quickcapture

Article ID:000022985

Software:
  • Portal for ArcGIS
  • ArcGIS QuickCapture
  • ArcGIS Enterprise 11 0
  • ArcGIS Enterprise 11 1
  • ArcGIS Server

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic