Hello,
I've built a network dataset with street feature class and GTFS data.
To publish the network dataset as Network Analysis service, I followed the instructions of the guide and in particular the "Using your network dataset with ArcGIS Server".
When I published, a warning message with code 24066 "The network dataset uses a custom evaluator" is displayed.
Finally I published the Network Analysis service on ArcGIS Server.
The service works very well and when I load it on ArcMap the Find Route tool works perfectly.
But when I use the service from my Xamarin Android application and try to create a RouteTask, I catch this error:
Error: Esri.ArcGISRuntime.ArcGISRuntimeException: Internal error: Data type Unknown
I think that Transit Evaluator type is not recognised at run time.
The NAS uri is http://geoservizi.iuav.it:6080/arcgis/rest/services/network/network_gtfs/NAServer/Route
This is my work environment:
Windows 10 Pro (v. 1809)
Visual Studio 2017 Community with Xamarin
ArcGIS Runtime SDK for .Net (v. 100.5.0)
Xamarin.Android... library packages (v. 28.0.0.1)
ArcGIS Server 10.5
Can anyone help me?
Many thanks
Massimo
Solved! Go to Solution.
Massimo,
I believe the cause of the problem is that “Exclude route_ids” and “Exclude trip_ids” attribute parameters have NULL as there value. It looks like ArcGIS Runtime is not parsing the value correctly when the value is a NULL.
I have logged an issue regarding this.
But to workaround this for now ... if you don't need those parameters (i.e. you don’t want to exclude any GTFS routes or trips from the analysis) then you could just delete them. Alternatively if you do plan to use those in the future you could enter some dummy string value in there, I believe the evaluator should just ignore the dummy value.
Hello Massimo. Theoretically this should work, and we are investigating why it doesn't.
Many thanks Melinda. I hope you can find a solution. Please let me know if
you need other info or data lto help your investigation.
Best regards
Massimo
Il gio 9 mag 2019, 17:39 Melinda Morang <geonet@esri.com> ha scritto:
GeoNet <https://community.esri.com/?et=watches.email.thread>
Re: Transit Evaluator app error on ArcGIS Server
reply from Melinda Morang
<https://community.esri.com/people/MMorang-esristaff?et=watches.email.thread>
in ArcGIS for Public Transit - View the full discussion
<https://community.esri.com/message/851243-re-transit-evaluator-app-error-on-arcgis-server?commentID=851243&et=watches.email.thread#comment-851243>
Massimo,
I believe the cause of the problem is that “Exclude route_ids” and “Exclude trip_ids” attribute parameters have NULL as there value. It looks like ArcGIS Runtime is not parsing the value correctly when the value is a NULL.
I have logged an issue regarding this.
But to workaround this for now ... if you don't need those parameters (i.e. you don’t want to exclude any GTFS routes or trips from the analysis) then you could just delete them. Alternatively if you do plan to use those in the future you could enter some dummy string value in there, I believe the evaluator should just ignore the dummy value.
Hi Frank,
tomorrow I will try the solution you suggested and then I'll let you know
the result.
Your help is very important to me.
Many thanks
Massimo
Il mar 14 mag 2019, 18:51 Frank Kish <geonet@esri.com> ha scritto:
GeoNet <https://community.esri.com/?et=watches.email.thread>
Re: Transit Evaluator app error on ArcGIS Server
reply from Frank Kish
<https://community.esri.com/people/fkish-esristaff?et=watches.email.thread>
in ArcGIS for Public Transit - View the full discussion
<https://community.esri.com/message/852178-re-transit-evaluator-app-error-on-arcgis-server?commentID=852178&et=watches.email.thread#comment-852178>
Frank,
I tried both workarounds you suggested: the first one (deleting “Exclude route_ids” and “Exclude trip_ids” parameters from the “Transit_TravelTime” attribute in the network dataset) solves the problem. The other solution (enter some dummy string value for the parameters) does not work and the initial error reoccurs.
Many thanks again
Massimo