The dataset to which you tried to add or import attribute rules does not support attribute rules. Certain datasets are not supported for attribute rules. For example, the GDB_validation* error tables.
Use a different dataset on which to create an attribute rule. Reference the Add Attribute Rule tool documentation for information about the data types that support attribute rules.