Custom MMPK and null solveRouteResult route startTime

622
2
06-23-2020 03:34 AM
SOTIRIOSTRIANTOS
New Contributor III

I 've created an mmpk file of a network dataset using ArcGIS Pro v1.2. This file is consumed in an arcgis runtime WPF application for routing purposes. Everything works ok except for the <<route.StartTime>> which is always null. I am not facing the same issue when i use an mmpk file obtained from ESRI. This leads me to the assumption that something is wrong with my mmpk file. The code apart from that works perfectly.

Below are some explanatory parts of my code.

solveRouteTask = await RouteTask.CreateAsync(_transportationNetwork); routeParameters = await solveRouteTask.CreateDefaultParametersAsync(); routeParameters.StartTime = DateTime.Now; solveRouteResult = await solveRouteTask.SolveRouteAsync(routeParameters);

I 've attached an screeshot where time format is shown. Can anyone suggest me a solution?

0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

Are you able to update to the latest version of ArcGIS Pro (2.5.1) and retest?

Thanks

Mike

0 Kudos
SOTIRIOSTRIANTOS
New Contributor III

hi there i updated to the latest version (2.6) but the issue remains, any ideas?

0 Kudos