Overview
When attaching a vault using a SQL database, you may encounter the following error:
This error is encountered when attaching a vault and the user for the 'Basic user credentials' (see screenshot below) SQL login account has a user mapping already in the database.
Solution
The account mapping is created by M-Files when attaching the vault. In order to fix the issue, the SQL user mapping must be removed. From SQL Server Management Studio, navigate to the server connection -> Security -> Logins, right click on the Login with the issue and select 'Properties'.
Remove the mapping and attach the vault.
