<?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 CopyFeatures_management doens't include globalid in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205934#M15845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fields = "*"&lt;/P&gt;&lt;P&gt;where = "objectid &amp;gt; 0"&lt;/P&gt;&lt;P&gt;gdbfc = os.path.join(localgdb,"intercept_" + layerName +"_"+ str(dtstr))&lt;/P&gt;&lt;P&gt;query = "/query?where={}&amp;amp;outFields={}&amp;amp;returnGeometry=true&amp;amp;f=json&amp;amp;token={}".format(where, fields, token)&lt;BR /&gt;fsURL = baseURL + layerID + query&lt;/P&gt;&lt;P&gt;fs = arcpy.FeatureSet()&lt;/P&gt;&lt;P&gt;fs.load(fsURL)&lt;/P&gt;&lt;P&gt;arcpy.CopyFeatures_management(fs, gdbfc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the resulting feature class doesn't contain any globalid values, (doesnt' even contain the field) but I can see them in the featureSet. Any pointers on how to include the original globalid values? They are used for relationships and are important.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2018 20:13:00 GMT</pubDate>
    <dc:creator>danbecker</dc:creator>
    <dc:date>2018-08-24T20:13:00Z</dc:date>
    <item>
      <title>CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205934#M15845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fields = "*"&lt;/P&gt;&lt;P&gt;where = "objectid &amp;gt; 0"&lt;/P&gt;&lt;P&gt;gdbfc = os.path.join(localgdb,"intercept_" + layerName +"_"+ str(dtstr))&lt;/P&gt;&lt;P&gt;query = "/query?where={}&amp;amp;outFields={}&amp;amp;returnGeometry=true&amp;amp;f=json&amp;amp;token={}".format(where, fields, token)&lt;BR /&gt;fsURL = baseURL + layerID + query&lt;/P&gt;&lt;P&gt;fs = arcpy.FeatureSet()&lt;/P&gt;&lt;P&gt;fs.load(fsURL)&lt;/P&gt;&lt;P&gt;arcpy.CopyFeatures_management(fs, gdbfc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the resulting feature class doesn't contain any globalid values, (doesnt' even contain the field) but I can see them in the featureSet. Any pointers on how to include the original globalid values? They are used for relationships and are important.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 20:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205934#M15845</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2018-08-24T20:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205935#M15846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy features and&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/feature-class-to-feature-class.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/feature-class-to-feature-class.htm"&gt;Feature Class to Feature Class—Conversion toolbox | ArcGIS Desktop&lt;/A&gt; are your options.&lt;/P&gt;&lt;P&gt;It must have something with your use of a featureset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The environment setting&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/preserve-globalids.htm"&gt;Preserve Global IDs (Environment setting)—Geoprocessing | ArcGIS Desktop&lt;/A&gt; is supported by the FeatureClassToFeatureClass tool, but doesn't appear to be by Copy Features.&lt;/P&gt;&lt;P&gt;Check that environment setting for other options that might be useful if you need copy features&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 21:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205935#M15846</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-24T21:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205936#M15847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can a featureSet be input to the feature class to feature class tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 23:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205936#M15847</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2018-08-24T23:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205937#M15848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the link...&amp;nbsp;&lt;EM style="-webkit-text-stroke-width: 0px; color: #4c4c4c; white-space: normal; font-weight: 300; letter-spacing: normal; text-decoration: none; display: inline !important; font-size: 14.8px; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; orphans: 2; text-align: left;"&gt;The feature class or feature layer that will be converted.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #4c4c4c; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-variant: normal; font-weight: 300; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;which might be your problem since I can't find any other 'copy-like' tools that supports it... and I presume a 'clone' of the globalid won't cut it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2018 00:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205937#M15848</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-25T00:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205938#M15849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am I missing something here? Is there a way to dump a feature service layer using the REST API where all fields are copied verbatim?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to decode the JSON string from the returned featureSet&amp;nbsp; and manually build a feature class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2018 00:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205938#M15849</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2018-08-25T00:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205939#M15850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With no mention of globalid's, there are a number of links on geonet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/187603"&gt;How to copy all records from a Map/Feature Service&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this one from &lt;A href="https://community.esri.com/migrated-users/8586"&gt;Jake Skinner&lt;/A&gt;‌ on GitHub looks promising&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/pmacMaps/copy-features-from-map-service" title="https://github.com/pmacMaps/copy-features-from-map-service"&gt;GitHub - pmacMaps/copy-features-from-map-service: Python module for copying records from a map/feature service to a feat…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could be &lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;‌ isn't the best place to post... maybe one of those web places &lt;A href="https://community.esri.com/space/2132"&gt;ArcGIS REST API&lt;/A&gt; i‌f those don't pan out or Jake doesn't see this post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2018 00:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205939#M15850</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-25T00:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205940#M15851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uggh.. Gobal IDs:&amp;nbsp; I love 'em and I hate 'em equally.&amp;nbsp; The copy features tool is generally used to 'move' a feature class from one gbd to another, right?&amp;nbsp; As a personal rule I avoid shapefiles, so I won't go down that rabbit hole.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, let's back up a click or two; when you add a Global ID to a featureclass, the resulting values are auto generated.&amp;nbsp; I look at Global ID values as a property/function of the gdb, and have no control over them.&amp;nbsp; Which is great with respect to adding new records to that fc within that gdb and keeping track between replication parents and children.&amp;nbsp; The downfall is the values won't transfer if/when you move, copy, append,&amp;nbsp; or load a feature class from one gdb to another.&amp;nbsp; That's just the rule of the game.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add a GUID field to a feature class within a gbd, you will need to populate the values.&amp;nbsp; Upon entering a new record, you would need to populate the GUID_field value as well. (google 'python uuid' for more info.)&amp;nbsp; But a GUID value will transfer to another gdb.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I have only used GlobalIDs in database replication.&amp;nbsp; Recently I've been exposed to their use in Survey 123 where GobalIDs are deployed as a relationship key to related tables.&amp;nbsp; The thing is, Survey 123 adds a GUID field to the related table that holds the 'parent global id'.&amp;nbsp; All is good if you don't want to move the data and related tables from AGOL to your own portal or hub, or vice-versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2018 13:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205940#M15851</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-08-26T13:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205941#M15852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/other-resources/gis-dictionary/term/4bf5760f-fbed-4378-b8fd-0d9e79630948" title="https://support.esri.com/en/other-resources/gis-dictionary/term/4bf5760f-fbed-4378-b8fd-0d9e79630948"&gt;GlobalID| Definition - Esri Support GIS Dictionary&lt;/A&gt; :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class="" style="color: #595959; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.9375px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;[ESRI software]&lt;/SPAN&gt;&lt;SPAN style="color: #595959; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15.9375px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;A field of type UUID (Universal Unique Identifier) in which values are automatically assigned by the geodatabase when a row is created. The GlobalID field is necessary for maintaining object uniqueness across replicas. All feature classes and tables participating in one-way or two-way replication must contain the GlobalID field. This field is not editable and is automatically populated when it is added for existing data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Since GlobalIDs were primarily created for geodatabase replication, what about using &lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/create-replica.htm" title="https://developers.arcgis.com/rest/services-reference/create-replica.htm"&gt;Create Replica—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2018 14:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205941#M15852</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-08-26T14:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205942#M15853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hosted feature service I'm attempting to dump was generated from survey123 connect. After wasting hours last Friday dealing with globalid values not being properly dumped via REST API and CopyFeatures_Management tool, I just decided to do this the quick way today. Simply login to portal, Export the entire database to FGDB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, like magic, the local FGDB contains all globalid and parentglobalid values. Now, I can just loop over the various tables and build my exported Excel file like I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, it would be nice to just dump via REST API so one doesn't have to continually login/dump to FGDB/extract, ect... but the process only takes 2 minutes vs. hours trying to figure out how to do it via the REST API. Our fixed price contracts don't support learning curves very well &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 15:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205942#M15853</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2018-08-27T15:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeatures_management doens't include globalid</title>
      <link>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205943#M15854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I dealt with with survey 123 is once I got the data into a file gdb, I had to then get the data into an Enterprise GDB...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 15:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copyfeatures-management-doens-t-include-globalid/m-p/205943#M15854</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-08-27T15:45:21Z</dc:date>
    </item>
  </channel>
</rss>

