Err - The file is not checked out by you

Hi guys,

I have strange situation.

I made VBA Macro witch ones step check out the file and a few step later check in the same file.

Everythink was ok but in finale testing I get error: The file is not checked out by you:

Vault user is the same like file user.

Do you have idea what is wrong? What is change?

SolidworksApi/macros