Select to view content in your preferred language

Append without dependencies

509
1
03-14-2024 03:25 AM
Moi_Nccncc
Regular Contributor

I am trying to append features from one feature class to anther, The source has other table dependancies which I dont want to copy how ever when using 

arcpy.management.Append(source_feature_class, target_feature_class, "NO_TEST") 

it copies the features and created all dependencies tables

 How to avoid copying any dependencies tables?

 

1 Reply
Clubdebambos
MVP Regular Contributor

Hi @Moi_Nccncc 

I never had this experience but you could try the memory workspace as in intermediary to 'break' the dependencies and create a standalone fc in memory before appending.

temp_fc = arcpy.conversion.ExportFeatures(
    in_features = "in_fc", 
    out_features = "memory\\temp_fc", 
    where_clause = "if you are subsetting data"
)

arcpy.management.Append(
    inputs = temp_fc, 
    target = "target_fc", 
    schema_type = "NO_TEST"
)

 

~ learn.finaldraftmapping.com