Description
When using the errorMessage keyword in a script expression, other keywords must not be used at the same time.
See Attribute rule script expression examples for more information.
Solution
Use the errorMessage keyword by itself in the script expression as part of the return.