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