Select to view content in your preferred language

SolveClosestFacility - problem when no Facilities in request

1178
0
08-11-2010 11:24 PM
Joachim_EckboJuell
Occasional Contributor
Hi,

I'm trying to use the SolveClosestFacility function on the RouteTask. I have service with a Closest Facility Layer, and everything works fine using the REST-api. In the NA service layer, I have already added all my facilities. I do not want to add these at run time in each request. Using the REST-api, I can simply leave out the "facilities" input parameter, and the pre-added facilities are used. But when I don't set Facilities on the RouteClosestFacilityParameters object, I get "Object reference not set to an instance of an object.".

Why?


-JJ
0 Kudos
0 Replies