Playback starts YouTube’s embedded player (privacy-enhanced mode).
How To: Preserve GlobalID/GUID Relationships when Appending Records
ChannelArcGISDescription from the creator
When features are appended to a Hosted Feature Service that has a GlobalID field, they're assigned new, unique GlobalID values that replace the existing GlobalID values.
Related tables based on a GlobalID/GUID relationship have the appended features' old rather than new GlobalID values in their GUID field. This means the change in GlobalID value renders the parent features disconnected from their related tables.
For Enterprise Geodatabases, an environment setting can preserve GlobalIDs: pro.arcgis.com/en/pro-app/tool-reference/enviro…
This video shows how to preserve GlobalID/GUID relationships between Hosted Layers/File Geodatabase feature classes and their related tables, in turn keeping parent features connected to the related records.
It is best practice to make backup copies of your data before manipulating fields.
Workflow Steps:
1. Add a new GUID field to the Survey A feature class, then copy the GlobalID values to the new GUID field to preserve them.
2. Add a new GUID field to the Survey B feature class to store the copied Global ID value when appending the Survey A feature class (step 3).
3. Append the Survey A feature class into the Survey B feature class. This generates new GlobalIDs for the appended features that uniquely identify them in the Survey B feature class.
4. For Survey A's related table(s), add a new GUID field to store the newly generated GlobalIDs for the appended features in the Survey B feature class.
5. Join the Survey B feature class into Survey A's related table(s) based on the related table's ParentGlobalID / Survey A Preserved GlobalID.
6. Copy the newly generated GlobalIDs into the empty GUID field.
7. Remove the join, then update the ParentGlobalID field in Survey A's related table(s) with the new GlobalIDs.
8. Append the Survey A - related table(s) into Survey B - related table(s).
*BUG-000124062 is fixed at ArcGIS Pro 2.5 and will enable using Hosted Layers in this workflow.
---------------------------------------------------------------------------------------------------
Follow us on Social Media!
Twitter: twitter.com/Esri
Facebook: facebook.com/EsriGIS
LinkedIn: linkedin.com/company/esri
Instagram: instagram.com/esrigram
The Science of Where: esri.com
Related tables based on a GlobalID/GUID relationship have the appended features' old rather than new GlobalID values in their GUID field. This means the change in GlobalID value renders the parent features disconnected from their related tables.
For Enterprise Geodatabases, an environment setting can preserve GlobalIDs: pro.arcgis.com/en/pro-app/tool-reference/enviro…
This video shows how to preserve GlobalID/GUID relationships between Hosted Layers/File Geodatabase feature classes and their related tables, in turn keeping parent features connected to the related records.
It is best practice to make backup copies of your data before manipulating fields.
Workflow Steps:
1. Add a new GUID field to the Survey A feature class, then copy the GlobalID values to the new GUID field to preserve them.
2. Add a new GUID field to the Survey B feature class to store the copied Global ID value when appending the Survey A feature class (step 3).
3. Append the Survey A feature class into the Survey B feature class. This generates new GlobalIDs for the appended features that uniquely identify them in the Survey B feature class.
4. For Survey A's related table(s), add a new GUID field to store the newly generated GlobalIDs for the appended features in the Survey B feature class.
5. Join the Survey B feature class into Survey A's related table(s) based on the related table's ParentGlobalID / Survey A Preserved GlobalID.
6. Copy the newly generated GlobalIDs into the empty GUID field.
7. Remove the join, then update the ParentGlobalID field in Survey A's related table(s) with the new GlobalIDs.
8. Append the Survey A - related table(s) into Survey B - related table(s).
*BUG-000124062 is fixed at ArcGIS Pro 2.5 and will enable using Hosted Layers in this workflow.
---------------------------------------------------------------------------------------------------
Follow us on Social Media!
Twitter: twitter.com/Esri
Facebook: facebook.com/EsriGIS
LinkedIn: linkedin.com/company/esri
Instagram: instagram.com/esrigram
The Science of Where: esri.com
About this tutorial
ArcGIS published this 8:40 video tutorial on January 29, 2020. It has been watched 11,516 times on YouTube.
- Channel
- ArcGIS
- Category
- Science & Technology
- Duration
- 8:40
- Published
- January 29, 2020
- Views
- 11,516
- Likes
- 75
Tags
Share
This tutorial in other languages
- FRComment: Preserve GlobalID / GUID Relations lors de l'ajout enregistrements
- ESCómo: Preserve GlobalID / GUID relaciones cuando anexando registros
- PTComo: Preserve GlobalID Relacionamentos / GUID ao anexar registros
- ITCome: preserve GlobalID / GUID Relazioni quando si aggiunge Records
- DEHow To: Konserve GlobalID / GUID Beziehungen, wenn Anfügen von Aufzeichnungen
- NLHow To: Preserve GlobalID / GUID Relaties wanneer Appending Records
- RUКак: Preserve GlobalID / GUID Relationships при добавлении записей
- PLJAK: Preserve GlobalID / GUID Relacje kiedy dołączanie Records
- JA方法:保存GlobalID / GUID関係際に追加のレコード
- ARكيف إلى: الحفاظ على GlobalID / GUID العلاقات عندما إلحاق السجلات
- HIकैसे: रक्षित GlobalID / GUID रिश्ते जब जोड़कर रिकॉर्ड्स
- IDCara: Pertahankan GlobalID / GUID Hubungan saat menambahkan Rekaman