Article ID: 114835, created on Sep 24, 2012, last review on Aug 24, 2016

  • Applies to:
  • Plesk 12.0 for Windows
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows
  • Plesk 10.4 for Windows


Backup fails with an error:

` <?xml version="1.0" encoding="utf-8"?>
 <execution-result status="error">
   <object name="server" type="server">
     <message severity="error" code="keynotfoundexception">
       <description>the given key was not present in the dictionary.</description>
 </execution-result> `

This makes migration from the server impossible, as on destination server Parallels Plesk Migration & Transfer Manager will fail to deploy agent:

 ERROR: Unable to initialize agent on remote host.
 The given key was not present in the dictionary


The issue might be caused by the inconsistency in Plesk database.


To troubleshoot the problem, please execute the following command and query:

 "%plesk_bin%\dbclient.exe" --direct-sql --sql="select,, clients.login from domains left join clients on where clients.login is NULL" 

If empty output is returned, then this article does not apply to your case.

If any domain names are returned, it means that they belong to a non-existing client.


  1. Back up the database:

        "%plesk_dir%\MySQL\bin\mysqldump.exe" -P8306 -uadmin -pPleskAdminPassword --databases psa > c:\Users\Administrator\plesk_db_backup.sql 
  2. Set correct cl_id for the domain entry (replace N in the request with ID of domain found on Diagnostics step and admin with login of proper owner of the domain):

    "%plesk_bin%"\dbclient.exe --direct-sql --sql="update domains set cl_id = (select id from clients where login = 'admin') where id = N" `

Search Words

migration from the server impossible

The given key was not present in the dictionary

Backup fails

ERROR: Unable to initialize agent on remote host

bd7fc88cf1b01f097749ae6f87272128 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 c796c01d6951fa24ed54c7f1111667c6 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 514af229ae32522202a910a2649c80fb ff5a00b8ead2e480367b019417a04207 46a8e394d6fa13134808921036a34da8

Email subscription for changes to this article
Save as PDF