According to Intuit, Error Code 6189 “QuickBooks is unable to determine the cause of the error on the local file” can occur when the QuickBooks data service either doesn’t have correct access permissions or they they weren’t read correctly. This error occurs when attempting to open a QuickBooks company file (.qbw) that is stored in a folder on the same computer that runs the QuickBooks Database Server, i. e., a single user configuration or a user on the computer hosting the company file in a multi-user configuration.
To resolve this error, insure that the QuickBooks data service has full access permissions. The name of the QuickBooks data service varies based on the version of QuickBooks you’re running.
For more information on resolving Error Code 6189, consult this Intuit knowledge base article.