The given key was not present in the dictionary.
ondrej
Posts: 6
Just installed SQL Compare and tried to compare two DBs. After clicking "Compare Now", the program got through the "Registering databases", "Creating mappings", and "Mapping database" steps just fine. It, however, then gets stuck on the "Comparing" step (sub-title of the step is "Comparing databases-Comparing databases"). The error message at the bottom of the screen says "The given key was not present in the dictionary.".
This is the first project I am attempting to create with SQL Compare. The same error comes up if I instruct the program to compare one DB to itself.
Ondrej
This is the first project I am attempting to create with SQL Compare. The same error comes up if I instruct the program to compare one DB to itself.
Ondrej
Comments
I am unable to reproduce the reported problem. So a support call has been created for you, the call reference is F0024450.
If possible, can you please export a SQL Compare snapshot of each data source and send a copies of the snapshot files to support@red-gate.com, quoting your call reference? (File Menu ->Create Snapshot)
This will help to investigate your problem.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Any updates on the cause of this problem?
Thanks,
Ondrej
I've run a number of variations of "select * from fn_my_permissions(NULL, 'server') order by permission_name asc;" and the VIEW CHANGE TRACKING permission never came up. While I don't think we've explicitly granted this permission to anyone or anything, is there a foolproof way to find out?
Can I download a previous version of SQL Compare that may not have this issue?
Thanks,
Ondrej
In this particular case, it seems that it was down to one of the database roles being corrupt.
Dropping and recreating the role fixed the issue.
We have an update to SQL Compare to fix the "key was not present in the dictionary" error when it is caused by a schema or user that has the "View Change Tracking" permission granted or revoked. If you have this problem, please download the updated installation from here:
http://www.red-gate.com/messageboard/vi ... php?t=9860
Please be aware that this is not an "official" release and may have unintended side-effects, so do not install the update unless you specifically have the issue mentioned above!