ArcGIS Pro 2.6.8; Oracle 18c 10.7.1 EGDB:
For a FC/table that has values that don't match its domains:
Is there a way to select all rows in the attribute table that have invalid coded-value domain values — using ArcPy?
- For each row, for each field, if the field has a domain, and if the value doesn’t match the domain, then select the row.
- Hopefully, the script could be dynamic, rather than needing to hardcode a list of fields with domains in the script.
- Edit (this edit was added after JohannesLindner kindly provided a script):
The table has a subtype.
(I'm not great with ArcPy yet. So I thought I'd ask, in case anyone has a sample script they can share to get me started.)
I'm aware ArcGIS Pro has "Select Only Invalid Objects" functionality in the attribute pane (not to be confused with the attribute window):

But that functionality doesn't work for non-spatial tables in ArcGIS Pro 2.6.8 (it only works on FCs)...that functionality was added alter in Pro 2.8.
Regardless, I'm wondering if ArcPy might be a better choice, when it comes to validating an entire table.