In ArcMap 10.5, on an output table from an import of relations, when trying to :
- select by attributes querying a field
- sorting attributes on field
We get the following message : "An expected Field was not found or could not be retrieved properly."
Using "Compact Geodatabase" tool does not solve this issue.
A workaround is to make a "Table to Table" of the table to a new one (in the same gdb), and then use the copied table. Then everything's fine.