There are several reasons why you receive this error message:
TIP: Follow our File locking and exclusive program areas in Sage 50 Accounts article for help with these issues.
To fix this issue you, need to stop and restart your Sage services.
If this doesn't resolve your issue, follow the rest of the steps in the Error: 'Waiting to open file...' 'Access Denied', 'Internal deadlock' or 'file is in use' article.