When a company file is open, a temporary file called a lock file is created in the folder where the company file is stored. This file, called Lock000*.flk, keeps track of who is using the company file. When you log out of the company file, the lock file is deleted automatically.
note : Lock file name
The file is named Lock????.flk, where??? stands for a number from 0001 to 0010. If there is more than one company file in the same folder, the number allows your software to create a different lock file name for each company file.
Sometimes, however, the lock file is not deleted. This can happen if your computer crashes or an error causes your company file to close unexpectedly. Lock files can accumulate in the company file folder, causing error messages to appear when you try to access your company file again.
To resolve these error messages, you must exit your software. In the Finder on Mac OS, open the folder that contains the company file and delete any lock files in the folder. You should then be able to open your company file without an error.