<?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: How to copy a &amp;quot;list feature&amp;quot; to a feature class ? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-copy-a-quot-list-feature-quot-to-a-feature/m-p/1163056#M6241</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CopyFeatures_management.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38568iBF09AA1E97BA3632/image-size/large?v=v2&amp;amp;px=999" role="button" title="CopyFeatures_management.png" alt="CopyFeatures_management.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="save.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38569i5D23CFA953E8B3D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="save.png" alt="save.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 14:56:14 GMT</pubDate>
    <dc:creator>NicolasDELAVAL</dc:creator>
    <dc:date>2022-04-11T14:56:14Z</dc:date>
    <item>
      <title>How to copy a "list feature" to a feature class ?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-copy-a-quot-list-feature-quot-to-a-feature/m-p/1163032#M6240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have constructed a list ("feat_to_add") that describes a feature that I want to add to a hosted feature layer in my Portal.&lt;/P&gt;&lt;P&gt;[{"geometry": {"paths": [[[2.9244314, 42.7770192], [2.9519563, 42.7748966], [2.951957, 42.7748306], [2.9518368, 42.7748318]]], "spatialReference": {"wkid": 4326, "latestWkid": 4326}}, "attributes": {"username": "DH283LK", "start_time": 1649155161000, "end_time": 1649155732000, "numimmat": "DH-283-LK", "activite": "Collecte", "commune": "Test", "duree": 9.650000000000192, "commentair": "Test"}}]&lt;/P&gt;&lt;P&gt;No problem using the function : layer.edit_features(adds=feat_to_add)&lt;/P&gt;&lt;P&gt;My feature was correctly added to my hosted feature layer.&lt;/P&gt;&lt;P&gt;But in addition to updating my Portal, I would also like to copy this feature to a feature class of a local FGDB.&lt;/P&gt;&lt;P&gt;I tried :&lt;/P&gt;&lt;P&gt;arcpy.CopyFeatures_management(feat_to_add, "c:/Temp/temp.gdb/test")&lt;/P&gt;&lt;P&gt;but return (in french) : "RuntimeError: Objet : erreur lors de l’exécution de l’outil"&lt;/P&gt;&lt;P&gt;So I tried :&lt;/P&gt;&lt;P&gt;featset = arcgis.features.FeatureSet(feat_to_add)&lt;BR /&gt;featset.save(save_location = "c:/Temp/temp.gdb", out_name = "test")&lt;/P&gt;&lt;P&gt;but return : "ExecuteError: ERROR 001558: Error parsing json file 'C:\Users\c3sm1\AppData\Local\Temp\ArcGISProTemp24060\41e954ab3c0b459c94922d89c5763fd2.json'. Ce type de valeur est incompatible avec ce type de champ. [start_time]&lt;BR /&gt;Échec de l’exécution de (JSONToFeatures)."&lt;/P&gt;&lt;P&gt;Can you please help me find the solution to copy my feature to a local feature class.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-copy-a-quot-list-feature-quot-to-a-feature/m-p/1163032#M6240</guid>
      <dc:creator>NicolasDELAVAL</dc:creator>
      <dc:date>2022-04-11T14:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a "list feature" to a feature class ?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-copy-a-quot-list-feature-quot-to-a-feature/m-p/1163056#M6241</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CopyFeatures_management.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38568iBF09AA1E97BA3632/image-size/large?v=v2&amp;amp;px=999" role="button" title="CopyFeatures_management.png" alt="CopyFeatures_management.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="save.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38569i5D23CFA953E8B3D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="save.png" alt="save.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-copy-a-quot-list-feature-quot-to-a-feature/m-p/1163056#M6241</guid>
      <dc:creator>NicolasDELAVAL</dc:creator>
      <dc:date>2022-04-11T14:56:14Z</dc:date>
    </item>
  </channel>
</rss>

