How to fix a ”Roles not found” issue when importing users via Excel?

The issue may occur due to mistyped role codes. Download a new Excel template, and instead of entering the code manually, try copying it from the field in the application where the role code is defined.