Migration failed: Cannot add duplicate collection entry of type 'error' with combined key attributes

Created:

2016-11-16 13:23:54 UTC

Modified:

2017-08-16 17:10:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration failed: Cannot add duplicate collection entry of type 'error' with combined key attributes

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

  1. Migration on Plesk for Windows failed with the following error:

     |- error: Transfer custom error documents of site 'example.com' and its virtual directories
    | Command C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin64\\websrvmng --set-error-docs --vhost-name=example.com --vdir-name=example.com --error-docs="" failed with exit code 1
    | stdout: Filename: \\\\?\\C:\\Inetpub\\vhosts\\example.com\\httpdocs\\web.config
    | Error: Cannot add duplicate collection entry of type 'error' with combined key attributes 'statusCode, subStatusCode' respectively set to '400, -1'
  2. .NET 2.0 framework is installed on a source server and is missing on a target server.

Cause

This is Plesk internal issue with ID #PMT-2586 , which is planned to be fixed in future Plesk updates.

Resolution

Workaround I

Install .NET Framework v3 on the target server as it allows entities duplication in web.config file. In this case, .NET v2 will be replaced with .NET v3 during migration.

Workaround II

1. On the source and destination server, go to domain DocumentRoot and  rename web.conig to web_orig.conf

3. Perform re-syncronization of subscriptions

4. On the destination server, go to domain DocumentRoot and  rename web_orig.conig to web.conf

Have more questions? Submit a request
Please sign in to leave a comment.