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
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
- Obtain the item ID in Portal for ArcGIS.
- Log in to Portal for ArcGIS and click Content > My Content > My Organization.
- Search for and click the hosted feature layer.
- 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.
- Configure the location sharing service in the ArcGIS Portal Directory.
- Log in to the ArcGIS Portal Directory.
- Click Portals > Self > Update.
- 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"}
- Click Update Organization.