<?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 Exporting Feature Collection in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exporting-feature-collection/m-p/1001310#M5199</link>
    <description>&lt;P&gt;I'm trying to export out a markup layer so I can consume it in ArcGIS Pro as a KML file. I get two error messages when I run my code:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Item type'text' is not supported for export, The item needs to be of type url&lt;/LI&gt;&lt;LI&gt;Item '3aa84e15bffd45e39d9aaa44c8d928fd' is of invalid type 'Feature Collection' Item type for export needs to be 'Feature Service', 'Vector Tile Service' or 'Scene Service'&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;How would I go about making my feature collection into a feature service? This is the code that returns the errors:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;markup = gis.content.search(query='owner:mfoley10_myUTK', item_type='Feature Collection')[0]
output = markup.export('test', 'KML')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I drill down far enough I can access a feature set, but feature sets don't have the property of exporting.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#this is a list of feature collections [&amp;lt;FeatureCollection&amp;gt;, &amp;lt;FeatureCollection&amp;gt;, &amp;lt;FeatureCollection&amp;gt;, &amp;lt;FeatureCollection&amp;gt;]
layers = markup.layers
fset1 = layers[0].layer.featureSet
fset2 = layers[0].layer.featureSet&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 18:14:54 GMT</pubDate>
    <dc:creator>MKF62</dc:creator>
    <dc:date>2020-11-13T18:14:54Z</dc:date>
    <item>
      <title>Exporting Feature Collection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exporting-feature-collection/m-p/1001310#M5199</link>
      <description>&lt;P&gt;I'm trying to export out a markup layer so I can consume it in ArcGIS Pro as a KML file. I get two error messages when I run my code:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Item type'text' is not supported for export, The item needs to be of type url&lt;/LI&gt;&lt;LI&gt;Item '3aa84e15bffd45e39d9aaa44c8d928fd' is of invalid type 'Feature Collection' Item type for export needs to be 'Feature Service', 'Vector Tile Service' or 'Scene Service'&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;How would I go about making my feature collection into a feature service? This is the code that returns the errors:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;markup = gis.content.search(query='owner:mfoley10_myUTK', item_type='Feature Collection')[0]
output = markup.export('test', 'KML')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I drill down far enough I can access a feature set, but feature sets don't have the property of exporting.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#this is a list of feature collections [&amp;lt;FeatureCollection&amp;gt;, &amp;lt;FeatureCollection&amp;gt;, &amp;lt;FeatureCollection&amp;gt;, &amp;lt;FeatureCollection&amp;gt;]
layers = markup.layers
fset1 = layers[0].layer.featureSet
fset2 = layers[0].layer.featureSet&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 18:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/exporting-feature-collection/m-p/1001310#M5199</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2020-11-13T18:14:54Z</dc:date>
    </item>
  </channel>
</rss>

