I am observing a very strange behavior. I have published a network service on version 10.61.
When i click on
.../NAServer/Route/retrieveTravelModes?f=json
I get following travel modes which are not defined in my network data set.
When i try to get travel mode on the same network data using
arcpy.na.GetTravelModes
I get following travel modes which i defined in my network data set.
I have tried publishing same network dataset twice on my server but i am observing the same behavior.
What i am missing here ?
Solved! Go to Solution.
The problem is resolved now and I would like to share the solution so i am answering my own question.
I tried publishing multiple network datasets and the issue was same. This was causing an issue in configuring the directions widget in Web App Builder as well.
However this is resolved now. I am using ArcGIS Portal and it turns out this was configured in portal settings. I have to remove the default settings of portal (Under Organization -> Utility Services -> Directions and Routing -> Routing Utilities URL)
It was overriding the travel modes which I published in my network service. Now when I removed this from our staging portal I am getting the correct travel modes.
The problem is resolved now and I would like to share the solution so i am answering my own question.
I tried publishing multiple network datasets and the issue was same. This was causing an issue in configuring the directions widget in Web App Builder as well.
However this is resolved now. I am using ArcGIS Portal and it turns out this was configured in portal settings. I have to remove the default settings of portal (Under Organization -> Utility Services -> Directions and Routing -> Routing Utilities URL)
It was overriding the travel modes which I published in my network service. Now when I removed this from our staging portal I am getting the correct travel modes.