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.
