I have an access database that opens and runs a macro (from a .bat file, from a scheduled Windows task) every 15 minutes. It runs fine 90% of the time, but every few days I get the 'The database has been placed in a state by an unknown user that prevents it from being opened or locked' error. When this happens overnight, the next day there may be 20 instances of the database open with that error as the Windows task continues to fire every 15 min.
I have searched the Internet and all of the solutions I have found relate to the database being opened by multiple users at the same time which is not the issue here. I do have error capturing in the macro and modules that fires off an email on error, but it never get's to that point.
Does anybody have any suggestions on what may be causing this issue and how it may be corrected. Note: The macro runs several VBA modules and then uses the menu exit command to close.
Windows Server 2008 R2 Access 2013