Select to view content in your preferred language

Unable to calculate route - no tracker

672
5
11-17-2023 08:45 AM
MohsenJanmohammadi
New Contributor II

using the ArcGIS network Analyst, and having the network dataset, we have created a Geo Processing tool with arcpy and  python, generally the steps that we are trying are as follow:

we create the request: arcpy.nax.Route(super().config['network_data_source']

load the stops and barriers: routeRequest.load
then we solve and save the results in a zip and we publish it:

solverResult.saveRouteData(zipFile)
arcpy.na.ShareAsRouteLayers(zipFile,summary="RoutePlanner",tags="RoutePlanner",portal_folder_name=folderName,share_with="EVERYBODY")

so we have the route layer result on our portal and having the url for Navigator with routeitemID we can see the route on Navigator

BUT!! this is not the case always :
every while on Navigator we have this error that says "Unable to calculate route - no tracker!"

is there any clue why this might happen !?

MicrosoftTeams-image.png

0 Kudos
5 Replies
KerriRasmussen
Esri Contributor

Good morning,

Are you seeing any error or warning messages in ArcGIS Pro when you run your python tools? Can you tell me me more about your workflow? Is there something about your routes and/or data that require a custom solution rather than using the routing tools provided? 

Thank you,

Kerri

0 Kudos
MohsenJanmohammadi
New Contributor II

Good Morning Kerri
thank you for your respond,

we are not using the "Utility Service" in the EnterprisePortal> Organization> Utility Service> Direction and Routing. We are using our own created GPTool in which by Arcpy.NAX we create the routeLayer, import the stops do the analysis, export the result as a zip file and then use the Arcpy.NA.share() to publish the route! 

by testing on the same zone of the map we understood that with different number of stops in the input, we may have the "ERROR 030206: An unexpected error occurred during tool execution", this problem happens both with the GPTool during the procedure at publishing time and trying to publish the same file by ArcGIS Pro (share as route layer);

so we tried to test on the same zone with different number of stops with the GPTool, first we just used the centroids of the streets as the stops (1461 stops) and we could publish and see the route on ArcGIS Navigator, then we used firstPoint and lastPoint  of the streets and deleted the identical points (1455 stops) and we could publish and see on the Navigator, in both cases we could publish the zip file also manually by ArcGIS Pro , but using all the three (firstPoint,LastPoint and centroid of the streets) by which the number of stops arrived to 2900 stops we couldn't publish and got the error (ERROR 030206: An unexpected error occurred during tool execution) at this point we tried to publish the zip file manually by ArcGIS Pro which returned the same error. we tried to test on other portion of the city by importing only firstPoint and lastPoint as the stops (2783 stops) we couldn't publish both manually and via GP Tool 

please consider that, by this results i would tend to think that the problem on Navigator "unable to calculate route, no Tacker!" could also not be related to the problem of publishing the route, we have published a route with few stops (firstPoint and lastPoint with total number of 448 stops) and the problem "no tracker" persists!

best regards
Moss

0 Kudos
KerriRasmussen
Esri Contributor

Hi Moss,

Good morning I have a few follow up questions for you.

  • Are you able to manually create a route in ArcGIS Navigator using the same mmpk that you are using for your other routes?
  • Also, does that mmpk cover the entire area you are trying to Navigate with your routes?
  • And can you create a route with your custom tool with only a very small (less that 100 stops) and test it to see if it works?

The answers to these questions will help us know which direction to go next.

Thank you,

Kerri

0 Kudos
MohsenJanmohammadi
New Contributor II

Hi Kerri
we have always used the same mmpk in all the test we've done, which is the mmpk for the entire Italy but the test are done on the Rome city. and there are actually plenty routes that we've made both manually and via our GPTool that we could see them on Navigators, only in some cases we've this problem

thank you,
Moss 

0 Kudos
KerriRasmussen
Esri Contributor

Hi Moss,

In the cases where you are having issues with your routes, do they all have a large number of points? Or are there any other similarities among the problem routes?

Thank you,

Kerri

0 Kudos