<?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 API for Python Save Feature Set to Feature Class not working since ArcGis Pro 3.3 Upgrade in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-save-feature-set-to-feature/m-p/1501487#M10298</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am fairly new on the blog, so hope I explain the problem correctly.&lt;/P&gt;&lt;P&gt;I have been using the Save Feature Set to Feature Class function in ARGIS API for Pyhton and be using it to do change tracking of data that is updated on our Enterprise Portal. It has been running fine up to the Point where I updated to ArcGIS Pro 3.3&lt;/P&gt;&lt;P&gt;I am not sure if something changed in arcpy or is it a bug.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Works on:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;arcgis 2.2.0.1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;arcgispro 3.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;arcpy 3.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does not work on:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;arcgis 2.3.0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;arcgispro 3.3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;arcpy 3.3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MV_Panel_xRackablex_Survey123: &lt;U&gt;&lt;A href="https://portal/server/rest/services/Hosted/service_012ff3e23a284e41a8cf7bb6133b372d/FeatureServer/0" target="_blank" rel="noopener"&gt;https://portal/server/rest/services/Hosted/service_012ff3e23a284e41a8cf7bb6133b372d/FeatureServer/0&lt;/A&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MV_Panel_xRackablex_Survey123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;---------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExecuteError&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Traceback (most recent call last)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In&amp;nbsp; [3]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 13:&amp;nbsp;&amp;nbsp;&amp;nbsp; fs.save(fgdb, 'ZZZTemp_' + s)&amp;nbsp; #Temp Disabled&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Users\username\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\features\feature.py, in save:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 1455:&amp;nbsp; res = json_to_featureclass(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Users\username\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\_impl\common\_spatial.py, in json_to_featureclass:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 30:&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.JSONToFeatures_conversion(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\conversion.py, in JSONToFeatures:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 1095:&amp;nbsp; raise e&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\conversion.py, in JSONToFeatures:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 1092:&amp;nbsp; retval = convertArcObjectToPythonObject(gp.JSONToFeatures_conversion(*gp_fixargs((in_json_file, out_features, geometry_type), True)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py, in &amp;lt;lambda&amp;gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 512:&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExecuteError: ERROR 001558: Error parsing json file 'C:\Users\username\AppData\Local\Temp\ArcGISProTemp17344\5ae7cb07306747ab93f86f82c8422145.json'. A row with this OID already exists. [ScratchRecordSet]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failed to execute (JSONToFeatures).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original post where I got the Python code from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/td-p/4281" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/td-p/4281&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have script a loop through all feature service layers, but it fails on the save of the first one. Uninstalling ArcGIS Pro 3.3 and Reinstalling Pro 3.2 did resolve the issue.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 09:52:14 GMT</pubDate>
    <dc:creator>GeorgeJoubert</dc:creator>
    <dc:date>2024-07-04T09:52:14Z</dc:date>
    <item>
      <title>ARCGIS API for Python Save Feature Set to Feature Class not working since ArcGis Pro 3.3 Upgrade</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-save-feature-set-to-feature/m-p/1501487#M10298</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am fairly new on the blog, so hope I explain the problem correctly.&lt;/P&gt;&lt;P&gt;I have been using the Save Feature Set to Feature Class function in ARGIS API for Pyhton and be using it to do change tracking of data that is updated on our Enterprise Portal. It has been running fine up to the Point where I updated to ArcGIS Pro 3.3&lt;/P&gt;&lt;P&gt;I am not sure if something changed in arcpy or is it a bug.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Works on:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;arcgis 2.2.0.1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;arcgispro 3.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;arcpy 3.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does not work on:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;arcgis 2.3.0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;arcgispro 3.3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;arcpy 3.3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MV_Panel_xRackablex_Survey123: &lt;U&gt;&lt;A href="https://portal/server/rest/services/Hosted/service_012ff3e23a284e41a8cf7bb6133b372d/FeatureServer/0" target="_blank" rel="noopener"&gt;https://portal/server/rest/services/Hosted/service_012ff3e23a284e41a8cf7bb6133b372d/FeatureServer/0&lt;/A&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MV_Panel_xRackablex_Survey123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;---------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExecuteError&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Traceback (most recent call last)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In&amp;nbsp; [3]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 13:&amp;nbsp;&amp;nbsp;&amp;nbsp; fs.save(fgdb, 'ZZZTemp_' + s)&amp;nbsp; #Temp Disabled&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Users\username\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\features\feature.py, in save:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 1455:&amp;nbsp; res = json_to_featureclass(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Users\username\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\_impl\common\_spatial.py, in json_to_featureclass:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 30:&amp;nbsp;&amp;nbsp;&amp;nbsp; return arcpy.JSONToFeatures_conversion(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\conversion.py, in JSONToFeatures:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 1095:&amp;nbsp; raise e&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\conversion.py, in JSONToFeatures:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 1092:&amp;nbsp; retval = convertArcObjectToPythonObject(gp.JSONToFeatures_conversion(*gp_fixargs((in_json_file, out_features, geometry_type), True)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py, in &amp;lt;lambda&amp;gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 512:&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ExecuteError: ERROR 001558: Error parsing json file 'C:\Users\username\AppData\Local\Temp\ArcGISProTemp17344\5ae7cb07306747ab93f86f82c8422145.json'. A row with this OID already exists. [ScratchRecordSet]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failed to execute (JSONToFeatures).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original post where I got the Python code from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/td-p/4281" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/td-p/4281&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have script a loop through all feature service layers, but it fails on the save of the first one. Uninstalling ArcGIS Pro 3.3 and Reinstalling Pro 3.2 did resolve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 09:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-save-feature-set-to-feature/m-p/1501487#M10298</guid>
      <dc:creator>GeorgeJoubert</dc:creator>
      <dc:date>2024-07-04T09:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: ARCGIS API for Python Save Feature Set to Feature Class not working since ArcGis Pro 3.3 Upgrade</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-save-feature-set-to-feature/m-p/1503085#M10319</link>
      <description>&lt;P&gt;Hey George,&lt;/P&gt;&lt;P&gt;I tried getting this working but was facing a some issues with the script. I instead came across the following &lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-download-feature-service-items-from-arcgis-onlin-000018909" target="_self"&gt;sample&lt;/A&gt; which seems to work at 3.3&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-save-feature-set-to-feature/m-p/1503085#M10319</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2024-07-09T16:09:49Z</dc:date>
    </item>
  </channel>
</rss>

