File <name> must be checked in before it can be renamed.

You're trying to rename a file that is checked out.

For more information, see Working with Multiple Developers.