<?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 arcpy.na.MakeVehicleRoutingProblemAnalysisLayer 160706: Cannot acquire a lock in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210707#M8009</link>
    <description>&lt;P&gt;Hi there we've just migrated from ArcGIS desktop to ArcGIS Pro and there is an issue when trying to use concurrently&amp;nbsp;arcpy.na.MakeVehicleRoutingProblemAnalysisLayer. When using arcpy we get the following error&amp;nbsp;&amp;nbsp;&lt;EM&gt;ERROR 160706: Cannot acquire a lock.Failed to execute (MakeVehicleRoutingProblemAnalysisLayer).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;With&amp;nbsp;ArcGIS desktop everything worked fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried changing&amp;nbsp;env.workspace = "in_memory" to env.workspace = "memory" but it doesnt work. It appears that&amp;nbsp;arcpy.na.MakeVehicleRoutingProblemAnalysisLayer is locked from the first call.&lt;/P&gt;&lt;P&gt;Our overall impression is that network analyst extension is not well supported in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 10:35:47 GMT</pubDate>
    <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
    <dc:date>2022-09-08T10:35:47Z</dc:date>
    <item>
      <title>arcpy.na.MakeVehicleRoutingProblemAnalysisLayer 160706: Cannot acquire a lock</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210707#M8009</link>
      <description>&lt;P&gt;Hi there we've just migrated from ArcGIS desktop to ArcGIS Pro and there is an issue when trying to use concurrently&amp;nbsp;arcpy.na.MakeVehicleRoutingProblemAnalysisLayer. When using arcpy we get the following error&amp;nbsp;&amp;nbsp;&lt;EM&gt;ERROR 160706: Cannot acquire a lock.Failed to execute (MakeVehicleRoutingProblemAnalysisLayer).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;With&amp;nbsp;ArcGIS desktop everything worked fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried changing&amp;nbsp;env.workspace = "in_memory" to env.workspace = "memory" but it doesnt work. It appears that&amp;nbsp;arcpy.na.MakeVehicleRoutingProblemAnalysisLayer is locked from the first call.&lt;/P&gt;&lt;P&gt;Our overall impression is that network analyst extension is not well supported in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 10:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210707#M8009</guid>
      <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
      <dc:date>2022-09-08T10:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.na.MakeVehicleRoutingProblemAnalysisLayer 160706: Cannot acquire a lock</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210717#M8010</link>
      <description>&lt;P&gt;You should go to&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160701-160725-160706.htm" target="_blank"&gt;160706: Cannot acquire a lock.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and provide the necessary information given that the message, according to esri....&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;... it occurs so rarely that the typical causes have not been identified so no solution is available at this time&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210717#M8010</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-09-08T11:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.na.MakeVehicleRoutingProblemAnalysisLayer 160706: Cannot acquire a lock</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210731#M8011</link>
      <description>&lt;P&gt;Thank you Dan, i ve just provided some info to the mentioned link. As it has to do with the error that we are facing, i believe that it is an issue of parallelism support. Apparently network analyst extension is not supported?!&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/analytics/analytics/parallel-geoprocessing-in-arcgis-pro/" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/analytics/analytics/parallel-geoprocessing-in-arcgis-pro/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 12:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210731#M8011</guid>
      <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
      <dc:date>2022-09-08T12:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.na.MakeVehicleRoutingProblemAnalysisLayer 160706: Cannot acquire a lock</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210884#M8013</link>
      <description>&lt;P&gt;Network Analyst is quite well supported in ArcGIS Pro!&lt;/P&gt;&lt;P&gt;When using the arcpy.na make analysis layer tool, the layer is created referencing the analysis workspace in a file geodatabase.&amp;nbsp; in_memory or memory env is not supported. If you are automating NA workflows in python then the recommended way is to use the arcpy.nax module (not layers). These python analysis classes will use in_memory feature classes (not file geodatases) and are high performance.&lt;/P&gt;&lt;P&gt;See the code samples here:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/vehicleroutingproblem.htm" target="_blank"&gt;VehicleRoutingProblem—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 17:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-na-makevehicleroutingproblemanalysislayer/m-p/1210884#M8013</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2022-09-08T17:31:19Z</dc:date>
    </item>
  </channel>
</rss>

