<?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 Deploying Export Network as a service in Roads and Highways User Group (RHUG) Questions</title>
    <link>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838882#M322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently attempting to publish the export network tool as a service so it can be called by external software. Publishing the geoprocessing service is fine, but the output is a zip file. Trying to include the tool in a script that can unzip the file fails because arcpy has no ExportNetwork object. Is the tool being deprecated/not supported? Are there other workflows that may be more appropriate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've also had issues with using a service published directly from the ALRS network, and I thought this might be an easier solution for our needs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2019 18:41:41 GMT</pubDate>
    <dc:creator>ColinSchut</dc:creator>
    <dc:date>2019-10-16T18:41:41Z</dc:date>
    <item>
      <title>Deploying Export Network as a service</title>
      <link>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838882#M322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently attempting to publish the export network tool as a service so it can be called by external software. Publishing the geoprocessing service is fine, but the output is a zip file. Trying to include the tool in a script that can unzip the file fails because arcpy has no ExportNetwork object. Is the tool being deprecated/not supported? Are there other workflows that may be more appropriate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've also had issues with using a service published directly from the ALRS network, and I thought this might be an easier solution for our needs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838882#M322</guid>
      <dc:creator>ColinSchut</dc:creator>
      <dc:date>2019-10-16T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Export Network as a service</title>
      <link>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838883#M323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to access this GP Tool is to add it to a custom toolbox and then reference that toolbox in your python code.&lt;/P&gt;&lt;P&gt;1) Create a new toolbox:&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/managing-tools-and-toolboxes/creating-a-custom-toolbox.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/managing-tools-and-toolboxes/creating-a-custom-toolbox.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Right click the toolbox and add a new&amp;nbsp; built-in tool:&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/managing-tools-and-toolboxes/adding-tools.htm#GUID-CA99C4ED-DB43-4038-8C2E-2099F173F3F0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/managing-tools-and-toolboxes/adding-tools.htm#GUID-CA99C4ED-DB43-4038-8C2E-2099F173F3F0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3) Browse to your installation of Roads and Highways Desktop and look for the Location Referencing Tools:&amp;nbsp; Ex: C:\Program Files (x86)\ArcGIS\LocationReferencing\Desktop10.7\ArcToolBox\Toolboxes&lt;/P&gt;&lt;P&gt;4) Check the Export Network GP Tool to add it to your new toolbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can access this toolbox through some super basic Python like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ImportToolbox&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:\GISTemp\MyToolbox.tbx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'LrsTool'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LrsTool&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExportNetwork&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;add your GP arguments here&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit@Esri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838883#M323</guid>
      <dc:creator>AmitHazra</dc:creator>
      <dc:date>2021-12-12T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Export Network as a service</title>
      <link>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838884#M324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get the error:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"Traceback &lt;BR /&gt; &amp;lt;module&amp;gt;&amp;nbsp;&lt;BR /&gt;TypeError: ExportNetwork() takes no arguments (9 given) "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when trying this with the ExportNetwork tool. It did work with another tool (I tried it with Buffer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Putting the tool in a model and trying to run it that way returns a tool is not valid error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 20:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838884#M324</guid>
      <dc:creator>ColinSchut</dc:creator>
      <dc:date>2019-10-16T20:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Export Network as a service</title>
      <link>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838885#M325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colin - Export Network is expecting up to 9 arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="462079" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/462079_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;When you open the parentheses on the tool it should look similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="462080" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/462080_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Amit@Esri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 21:47:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-user-group-rhug-questions/deploying-export-network-as-a-service/m-p/838885#M325</guid>
      <dc:creator>AmitHazra</dc:creator>
      <dc:date>2019-10-16T21:47:49Z</dc:date>
    </item>
  </channel>
</rss>

