<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to pass a reference to a hosted NAServer network dataset to a GP Tool in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1663585#M43387</link>
    <description>&lt;P&gt;My First attempt was to pass the REST endpoint of the network dataset like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;https://localhost/server/rest/services/NETWORK-DEV/Austin_network/NAServer/net_nd&lt;/LI-CODE&gt;&lt;P&gt;I suspect the tool which tries to create a NetworkDatasetLayer like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.nax.MakeNetworkDatasetLayer(in_ds,out_layer) &lt;/LI-CODE&gt;&lt;P&gt;Can only handle a file geodatabase, NOT a network dataset service of type:&amp;nbsp;&lt;SPAN&gt;esriNAServerNetworkDatasetLayer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have since created a folder as a Data Store location on the server and have a copy of the Network dataset gdb there, but that's less than ideal since I have a perfectly good NA Service with that layer already there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2025 16:03:18 GMT</pubDate>
    <dc:creator>NikMartin</dc:creator>
    <dc:date>2025-11-05T16:03:18Z</dc:date>
    <item>
      <title>Unable to pass a reference to a hosted NAServer network dataset to a GP Tool</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1657196#M43230</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 20:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1657196#M43230</guid>
      <dc:creator>NikMartin</dc:creator>
      <dc:date>2025-10-10T20:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to pass a reference to a hosted NAServer network dataset to a GP Tool</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1657381#M43235</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/555184"&gt;@NikMartin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 11:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1657381#M43235</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-10-13T11:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to pass a reference to a hosted NAServer network dataset to a GP Tool</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1657542#M43244</link>
      <description>&lt;P&gt;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.&amp;nbsp; If the credentials running ArcGIS Server don't have access to the data set location, the tool will fail.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 21:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1657542#M43244</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-10-13T21:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to pass a reference to a hosted NAServer network dataset to a GP Tool</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1663585#M43387</link>
      <description>&lt;P&gt;My First attempt was to pass the REST endpoint of the network dataset like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;https://localhost/server/rest/services/NETWORK-DEV/Austin_network/NAServer/net_nd&lt;/LI-CODE&gt;&lt;P&gt;I suspect the tool which tries to create a NetworkDatasetLayer like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.nax.MakeNetworkDatasetLayer(in_ds,out_layer) &lt;/LI-CODE&gt;&lt;P&gt;Can only handle a file geodatabase, NOT a network dataset service of type:&amp;nbsp;&lt;SPAN&gt;esriNAServerNetworkDatasetLayer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have since created a folder as a Data Store location on the server and have a copy of the Network dataset gdb there, but that's less than ideal since I have a perfectly good NA Service with that layer already there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 16:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1663585#M43387</guid>
      <dc:creator>NikMartin</dc:creator>
      <dc:date>2025-11-05T16:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to pass a reference to a hosted NAServer network dataset to a GP Tool</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1663587#M43388</link>
      <description>&lt;P&gt;Yeah I'm trying to use a published NA service as a source for the network dataset. I have successfully used a folder as a data source with the gdb in it, but that creates logistical issues for keeping that data in sync with the published service. I'd really love to be able to do&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;nd = arcpy.nax.MakeNetworkDatasetLayer(path_to_NA_Service_layer)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Nov 2025 16:06:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-pass-a-reference-to-a-hosted-naserver/m-p/1663587#M43388</guid>
      <dc:creator>NikMartin</dc:creator>
      <dc:date>2025-11-05T16:06:47Z</dc:date>
    </item>
  </channel>
</rss>

