Select to view content in your preferred language

Attribute Rule Calculation and Python

197
2
08-28-2024 07:52 AM
KevinPiraino2
Regular Contributor

Looking to get some insight into how attribute rules (specifically calculations) are effected by the use of python. How are attribute rules treated when new records are added to a table (or feature class) using python? We have a fair number of process that truncate and append records from one table to another on a nightly basis and I was wondering if an attribute rule (calculation) would be adhered to when inserting records using the append GP tool through python? Would this be the case to have the attribute rule only set for bulk execution at a later time (sometime after the python script runs)?

0 Kudos
2 Replies
TedHoward2
Esri Contributor

Attribute rules are defined in the database and are applied whenever data is added or edited, even via Python. However, there are options for deferred evaluation. See batch calculation rules.

KevinPiraino2
Regular Contributor

Thanks for the information. I was struggling to find anything in ESRI's documentation about how attribute rules would be affected python data inserts.

0 Kudos