Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

M-Files Admin: Copy vault fails with the FOREIGN KEY constraint "FK_SHAREDLINK_VLR_ACCESSKEY"

Last updated on 17 January 2025 · 1 min read

Admin
M-Files Admin

Overview

If there are visitor links created in the MS SQL based vault and you try to create copy vault in M-Files Admin, it fails with the error:

SampleCopy {A944DF69-CDF0-4FD9-A73F-48F0F9AAD95E}

The job "Copy Vault" finished running.

Status: Failed. Error: Unspecified error. (FK_SHAREDLINK_VLR_ACCESSKEY)

The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_SHAREDLINK_VLR_ACCESSKEY". The conflict occurred in database "SampleCopy", table "dbo.SHAREDLINK", column 'ACCESSKEY'. (ERROR: 547, SQLSTATE: 23000)

If you remove visitor links in M-Files Desktop, and re-try the copy vault, other error is shown:

SampleCopy {A944DF69-CDF0-4FD9-A73F-48F0F9AAD95E}

The job "Copy Vault" finished running.

Status: Failed. Error: Unspecified error. (FK_VLINKRECIPIENT_CREATEDBY)

The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_VLINKRECIPIENT_CREATEDBY". The conflict occurred in database "SampleCopy", table "dbo.USERACCOUNT", column 'ID'. (ERROR: 547, SQLSTATE: 23000)

Solution

This is a known issue, ID 172186 and it is fixed in M-Files Feb'25 release. No workaround available.

Still need help?

On this page