Raise error when a role has not been defined