ERROR

Couldn't create track view

Last Published: October 23, 2023

Error Message

In the Track Viewer web app, when attempting to create a new track view, the following error returns:

Error:   
Couldn't create track view.
Expected id to be a string or number, received undefined
The error message, Couldnt create track view is returned.

Cause

The location sharing service configuration does not include the reference to the item ID of the hosted feature layer in the ArcGIS Portal Directory.

Solution or Workaround

  1. Obtain the item ID in Portal for ArcGIS.
    1. Log in to Portal for ArcGIS and click Content > My Content > My Organization.
    2. Search for and click the hosted feature layer.
    3. At the top of the item details page, in the address bar of the web browser, copy the item ID of the hosted feature layer.
The item ID in the address bar of the web browser.
  1. Configure the location sharing service in the ArcGIS Portal Directory.
    1. Log in to the ArcGIS Portal Directory.
    2. Click Portals > Self > Update.
    3. For Location Tracking Service, paste the following input and replace 'WEBADAPTORHOST', 'DOMAIN', 'WEBADAPTORNAME' and 'ITEM ID' with the web adaptor host, domain, name of the web adaptor, and the obtained item ID of the hosted feature layer from Step 1.
{"url":"https://WEBADAPTORHOST.DOMAIN.com/WEBADAPTORNAME/rest/services/Hosted/location_tracking/FeatureServer","id":"ITEM ID"}
The input configured in the Location Tracking Service box.
  1. Click Update Organization.

Article ID:000031280

Software:
  • Portal for ArcGIS
  • ArcGIS Tracker
  • ArcGIS Enterprise 11 1
  • ArcGIS Enterprise 11 0

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