<?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 ArcGIS Pro Crashing when creating .gpkx from Package Result geoprocessing tool in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-crashing-when-creating-gpkx-from/m-p/1402563#M81124</link>
    <description>&lt;P&gt;ArcGIS Pro is crashing when I try to create a .gpkx package using Package Result Geoprocessing tool.&lt;/P&gt;&lt;P&gt;I have following script tool which creates a .mmpk from a layer file. Tool execute successfully if I run it in ArcGIS pro and it creates .mmpk successfully.&lt;/P&gt;&lt;P&gt;But When I try to create a .gpkx from my script tool result ArcGIS Pro Crashes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;def script_tool():&lt;BR /&gt;#MyProject.aprx is empty project&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject("D:\ESRI\projectfolder\MyProject.aprx")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;newMap = aprx.createMap("NewMap11", "Map")&lt;BR /&gt;#Layer folder has .lyr file with shapefiles&lt;BR /&gt;lyrx1 = arcpy.mp.LayerFile(r"D:\ESRI\somelayer\Powder Grid_LYR.lyr")&lt;BR /&gt;newMap.addLayer(lyrx1)&lt;BR /&gt;arcpy.management.CreateMobileMapPackage(newMap, 'D:\ESRI\outputfolder\MyMap.mmpk')&lt;BR /&gt;#aprx.deleteItem(newMap)&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if __name__ == "__main__":&lt;/P&gt;&lt;P&gt;script_tool()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 13:19:04 GMT</pubDate>
    <dc:creator>Muhammadkhalid</dc:creator>
    <dc:date>2024-03-29T13:19:04Z</dc:date>
    <item>
      <title>ArcGIS Pro Crashing when creating .gpkx from Package Result geoprocessing tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-crashing-when-creating-gpkx-from/m-p/1402563#M81124</link>
      <description>&lt;P&gt;ArcGIS Pro is crashing when I try to create a .gpkx package using Package Result Geoprocessing tool.&lt;/P&gt;&lt;P&gt;I have following script tool which creates a .mmpk from a layer file. Tool execute successfully if I run it in ArcGIS pro and it creates .mmpk successfully.&lt;/P&gt;&lt;P&gt;But When I try to create a .gpkx from my script tool result ArcGIS Pro Crashes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;def script_tool():&lt;BR /&gt;#MyProject.aprx is empty project&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject("D:\ESRI\projectfolder\MyProject.aprx")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;newMap = aprx.createMap("NewMap11", "Map")&lt;BR /&gt;#Layer folder has .lyr file with shapefiles&lt;BR /&gt;lyrx1 = arcpy.mp.LayerFile(r"D:\ESRI\somelayer\Powder Grid_LYR.lyr")&lt;BR /&gt;newMap.addLayer(lyrx1)&lt;BR /&gt;arcpy.management.CreateMobileMapPackage(newMap, 'D:\ESRI\outputfolder\MyMap.mmpk')&lt;BR /&gt;#aprx.deleteItem(newMap)&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if __name__ == "__main__":&lt;/P&gt;&lt;P&gt;script_tool()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 13:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-crashing-when-creating-gpkx-from/m-p/1402563#M81124</guid>
      <dc:creator>Muhammadkhalid</dc:creator>
      <dc:date>2024-03-29T13:19:04Z</dc:date>
    </item>
  </channel>
</rss>

