Error assigning a role to a search