I'm trying to publish a GP tool that does some Network Analysis on a Network Dataset and in Pro, the toolbox input parameter is of type GPNetworkDataset. In Pro, I can just choose the network DS in the toolbox UI and everything works, but when published to the server, I'm unable to pass a NAServer URL as the value for the network dataset input, it tells me the input is not of the proper type. We have published the GP tool with this hardcoded to a gdb that we bundle in the service definition, but we need to be able to run this tool against multiple hosted NA Services.
Hey @NikMartin
Would you be able to show an example of the URL that you're attempting to enter? Both in the tool and also hardcoded? I would also recommend using "arcpy.AddMessage(URL)" and see if that shows anything unusual. I'm curious if OS carriage returns or some type of formatting is causing this to act strangely.
Cody
One must remember that ArcGIS Server accesses file-based data sources, including network file shares, using its own credentials and not the credentials of the person who ran and published the tool. If the credentials running ArcGIS Server don't have access to the data set location, the tool will fail.