Select to view content in your preferred language

Export Features Geoprocessing Tool and Attribute Rules

369
6
2 weeks ago
Labels (1)
MichaelVolz
Esteemed Contributor

I was wondering what the expected behavior is for using the Export Features Geoprocessing Tool on a feature class with Attribute Rules from an enterprise geodatabase to a file geodatabase.

Is the expected behavior that the Attribute Rules are preserved on the exported feature class or do the Attribute Rules get removed from the exported feature class?

Any insights on this process are greatly appreciated.  Thanks in advance.

0 Kudos
6 Replies
DanPatterson
MVP Esteemed Contributor

I don't use them but there is 

Export Attribute Rules (Data Management)—ArcGIS Pro | Documentation

Import Attribute Rules (Data Management)—ArcGIS Pro | Documentation

perhaps that is to facilitate rule transfer


... sort of retired...
MichaelVolz
Esteemed Contributor

ChatGPT told me that a copy/paste operation in ArcGIS Pro should allow me to copy feature classes with Attribute Rules from one database to another.  Well as it turns out, it is not nearly as simple as this when Attribute Rules are involved.  If you have Calculation or Constraint Attribute Rules associated with other feature classes in the same database, then ArcGIS Pro will try to copy those other feature classes as well, but that operation has ultimately failed with every attempt.

One lesson learned is to not accept ChatGPT's ideas as a solution until the workflow is thoroughly tested.

DanPatterson
MVP Esteemed Contributor

does export/import rules not work either?


... sort of retired...
0 Kudos
MichaelVolz
Esteemed Contributor

I have not tried the export/import rules as I was looking for the simplest workflow that more novice GIS users would be more likely to follow.  I will test the export/import rules, but there might also be some issues between items that are available to enterprise gdbs compared to file gdbs that might throw some errors as well.

0 Kudos
RobertKrisher
Esri Regular Contributor

@MichaelVolz If you want something a novice can do, copy/paste is going to be the right approach, since it ensure the class and all its rules will be editable. If you just copy the class, without the objects referenced by the attribute rules, the rules will fail to import and you will need to manually remove/adjust the rules before importing them. If you are letting users edit this data and plan to import it back into your database, you will need to make sure that removing those attribute rules isn't going to cause any data integrity issues.

0 Kudos
SurabhiGupta1
Emerging Contributor

@MichaelVolz If you are using Export Features tool, it is not going to copy the attribute rules associated with the feature class. 
https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/create-modify-and-delete-at....

You need to either use Export XML tool or use copy-paste. 

0 Kudos