License update failed, you have to deallocate all xxxxx licenses

When trying to update license, getting error : License update failed, you have to deallocate all xxxx licenses

When there is a change in the licensing in terms of addition or deletion of the type of robots and we try to update the same license by clicking on Renew option, we get this error.

The reason behind the same is the licenses which were present previously and with the new license if they no longer exists then the license would be treated as over allocated.

In such scenario, we need to use the Remove functionality by clicking on the Remove button and the upload the same license key again to the same tenant.

Note : We will also have to check and deallocate modified types of robots, if needed.