The following reasons are possible:
...
1. You tried to assign a role to itself.
2. You tried to assign role definitions cyclically.
Check whether there is a typing error. If not, check whether the roles which would result in the cycle can be combined to one role.