<?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: FeatureClass to FeatureClass from ArcGIS Hub in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/featureclass-to-featureclass-from-arcgis-hub/m-p/1073785#M61518</link>
    <description>&lt;P&gt;After trying several different approaches, I found that I can run&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/project.htm" target="_self"&gt;Project (Data Management)&lt;/A&gt;&amp;nbsp;on the saved feature class and this will fix the NULL values.&amp;nbsp; The output feature class has the correct Shape_Length and Shape_Area values assigned in the fGDB.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.Project(in_dataset, out_dataset, out_coor_system, transform_method)&lt;/LI-CODE&gt;&lt;P&gt;It would be great is this could be resolved without having to run an additional data management function.&amp;nbsp; It would also be great if you could just run the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/feature-class-to-feature-class.htm" target="_self"&gt;Feature Class To Feature Class (Conversion)&lt;/A&gt;&amp;nbsp; from a python script for data hosted on ArcGIS Online and Hub.&lt;/P&gt;&lt;P&gt;I am going to put a ticket in for initial issue.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 16:56:22 GMT</pubDate>
    <dc:creator>LanceCole</dc:creator>
    <dc:date>2021-06-29T16:56:22Z</dc:date>
    <item>
      <title>FeatureClass to FeatureClass from ArcGIS Hub</title>
      <link>https://community.esri.com/t5/python-questions/featureclass-to-featureclass-from-arcgis-hub/m-p/1073321#M61510</link>
      <description>&lt;P&gt;I am working on a script in Python to copy several Feature Classes hosted on ArcGIS Hub to a local fGDB.&amp;nbsp; I am using the workflow provided by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;in&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a-fgdb-feature/m-p/4285#M394" target="_self"&gt;Using arcpy to copy a portal feature service to a fgdb feature class.&lt;/A&gt; This is working for most of the features but a few will have NULL values listed for their Shape_Length and Shape_Area once imported into the fGDB.&amp;nbsp; Some features do not add these fields while others populate without issue.&amp;nbsp; Any Idea as to how to resolve the Null values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
from arcgis.features import FeatureLayer

url_fl = r"https://the.url.com/arcgis/rest/services/structures/MapServer/0"
fgdb = r'c:\pathTo\mytest.gdb'
fc = r'thisfeature'

fl = FeatureLayer(url_fl)
fs = fl.query()
fs.save(fgdb, fc)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not own the data hosted on the Hub but have been given access to download/query the data.&amp;nbsp; If I use the Feature Class to Feature Class tool in ArcGIS Pro the Shape_Length and Shape_Area fields populate, without issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 20:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/featureclass-to-featureclass-from-arcgis-hub/m-p/1073321#M61510</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2021-06-28T20:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureClass to FeatureClass from ArcGIS Hub</title>
      <link>https://community.esri.com/t5/python-questions/featureclass-to-featureclass-from-arcgis-hub/m-p/1073453#M61515</link>
      <description>&lt;P&gt;Is this publicly-accessible data I could look at myself?&amp;nbsp; (Send me an GeoNet e-mail if yes but you don't want to post it here).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 20:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/featureclass-to-featureclass-from-arcgis-hub/m-p/1073453#M61515</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-06-28T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureClass to FeatureClass from ArcGIS Hub</title>
      <link>https://community.esri.com/t5/python-questions/featureclass-to-featureclass-from-arcgis-hub/m-p/1073785#M61518</link>
      <description>&lt;P&gt;After trying several different approaches, I found that I can run&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/project.htm" target="_self"&gt;Project (Data Management)&lt;/A&gt;&amp;nbsp;on the saved feature class and this will fix the NULL values.&amp;nbsp; The output feature class has the correct Shape_Length and Shape_Area values assigned in the fGDB.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.Project(in_dataset, out_dataset, out_coor_system, transform_method)&lt;/LI-CODE&gt;&lt;P&gt;It would be great is this could be resolved without having to run an additional data management function.&amp;nbsp; It would also be great if you could just run the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/feature-class-to-feature-class.htm" target="_self"&gt;Feature Class To Feature Class (Conversion)&lt;/A&gt;&amp;nbsp; from a python script for data hosted on ArcGIS Online and Hub.&lt;/P&gt;&lt;P&gt;I am going to put a ticket in for initial issue.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 16:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/featureclass-to-featureclass-from-arcgis-hub/m-p/1073785#M61518</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2021-06-29T16:56:22Z</dc:date>
    </item>
  </channel>
</rss>

