Skip to content

Commit e4ce1a6

Browse files
committed
fix: add support for data with global id fields that does not use change detection
1 parent 10dd9d0 commit e4ce1a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/forklift/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ def _mirror_fields(source, destination):
482482
"DateOnly": "DATEONLY",
483483
"Double": "DOUBLE",
484484
"Guid": "GUID",
485+
"GlobalID": "GUID",
485486
"Integer": "LONG",
486487
"Single": "FLOAT",
487488
"SmallInteger": "SHORT",
@@ -492,7 +493,7 @@ def _mirror_fields(source, destination):
492493

493494
add_fields = []
494495
for field in arcpy.da.Describe(source)["fields"]:
495-
if field.type in ["OID", "GlobalID"]:
496+
if field.type == "OID":
496497
continue
497498

498499
add_fields.append([field.name, TYPES[field.type], field.aliasName, field.length])

0 commit comments

Comments
 (0)