No UserLicense found Error When Deploying Full Profiles

When you deploy profiles using the Full Profiles step, your deployment might fail with the following error message:

“No UserLicense found”

When a profile is created in Salesforce, it has to be linked to a license. This license must exist in the destination organization where the profile is being deployed, otherwise, it won't be possible to create the profile.

There are a few solutions to this error that you can try:

  1. Re-create the profile in the source org using a license that exists in the destination org.
  2. Enable/Purchase/Activate the license in the destination organization and deploy the same profile again.

How did we do?