Select to view content in your preferred language

ArcGIS Pro creates invalid travel mode for a network dataset

335
1
03-28-2023 07:31 AM
WondimBeshah
New Contributor

I created a travel mode for a network dataset using ArcGIS Pro and below is the detail of the json response from ArcGIS Enterprise for the travel mode. 

{
 "currentVersion": 10.91,
 "defaultTravelMode": "1",
 "supportedTravelModes": [{
  "name": "New Travel Mode",
  "id": "1",
  "type": "OTHER",
  "description": "Collection of network dataset settings that define actions that are allowed on the network and how the actions can be performed.",
  "timeAttributeName": "",
  "distanceAttributeName": "Length",
  "impedanceAttributeName": "QCost1",
  "restrictionAttributeNames": [],
  "attributeParameterValues": [],
  "useHierarchy": false,
  "uturnAtJunctions": "esriNFSBAllowBacktrack",
  "simplificationTolerance": 1,
  "simplificationToleranceUnits": "esriMeters"
 }]
}

 However, when running solve:

https://myadapter/server/rest/services/qwic/newNetwork/NAServer/route/solve

I get the following error.

{"error":{"code":400,"extendedCode":-2147024809,
"message":"Invalid or missing input parameters.",
"details":["The travel mode settings were not applied because the travel mode is invalid:
{\"description\":\"Collection of network dataset settings that define actions that are allowed on the network and how the actions can be performed.\",\"id\":\"1\",\"name\":\"New Travel Mode\",\"simplificationTolerance\":null,\"timeAttributeName\":\"\",\"type\":\"OTHER\"}"]}}

 I suspect two possible causes, the simplificationTolerance":null and type: OTHER. The server may not know null and all caps OTHER. It may require lower case. 

Could someone help me in a workaround?

0 Kudos
1 Reply
WondimBeshah
New Contributor

Is there anyone from Esri who could help on this?

0 Kudos