An item with the same key has already been added
RicardoKrot
Posts: 2 New member
Hi
I have version 4.0.7.207 instaled
However error persists (An item with the same key has already been added) in objects type INDEX and TABLE, problem is that Schema Oracle Compare didn´t show us wich object has generates the reference problem, how i find out which object is causing the error above, the tool should show the filename, it´s possible developing in tool to show the filename after the message " An item with the same key has already been added " + filename ?
thanks
I have version 4.0.7.207 instaled
However error persists (An item with the same key has already been added) in objects type INDEX and TABLE, problem is that Schema Oracle Compare didn´t show us wich object has generates the reference problem, how i find out which object is causing the error above, the tool should show the filename, it´s possible developing in tool to show the filename after the message " An item with the same key has already been added " + filename ?
thanks
Answers
Thank you for your forum post.
A colleague of yours, has already submitted a support ticket, ticket reference number is #105046.
From the log file information he has kindly supplied, I see that you are comparing two script folders. From the testing I have performed on the schemas I exported to script folders, I am unable to replicate the reported problem.
Therefore I have requested copies of the script folders he is using and waiting for his reply.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
I also sent an error report to you guys.
PS. Version is the same 4.0.7.207
-- Version 4.0.7.207
-- Index is shown as a new object in source (DB) compared to scripts folder
-- => When I try to update this to script folder "Item with the same name" error occurs
CREATE UNIQUE INDEX dw.pk_idx ON dw.tablename(id)
NOCOMPRESS LOGGING TABLESPACE tablespacename;
-- Same time the create table script looks like this in our scripts folder. This doesn't pop up when I compare DB to the scripts folder.
CREATE TABLE dw.tablename (
CONSTRAINT pk PRIMARY KEY (id) USING INDEX dw.pk_idx
) NOCOMPRESS
LOGGING
TABLESPACE tablespacename;
-- Version 4.0.0.14
-- The new index dw.pk_idx is not shown at all when comparing DB to our scripts folder (not as new or changed item)
-- Index is added to the create table script, which is changed compared to the one in our scripts folder:
CREATE TABLE dw.tablename (
CONSTRAINT pk PRIMARY KEY (id) USING INDEX (CREATE UNIQUE INDEX dw.pk_idx ON dw.tablename(id) NOCOMPRESS LOGGING TABLESPACE tablespacename)
) NOCOMPRESS
LOGGING
TABLESPACE tablespacename;
I have exactly the same issue with an Create table DDL which create the FK toto
and then the FK toto is created later again so I got an error that the FK constraint already exist.
Let us know when the issue will be fixed.
Cheers.
Marc
Thank you for your update to this forum post.
To investigate further I need further information from you.
The 'An item with the same key has already been added' is very generic error message and from my experience has many different situations that can cause it to occur.
However from your description of the problem, I believe it is related to the original post in this topic.
Would please increase the minimum logging level to verbose as per this help article if using the GUI to perform your comparison and deployment:
https://documentation.red-gate.com/sco4/troubleshooting/logging-and-log-files
Repeat the comparison and deployment attempt to generate the verbose log file.
Or if using the command line, add the /loglevel:verbose switch to the command line syntax. Run the command commands to reproduce the error and consequentially generate a log file.
Email support@red-gate.com with a copy of the Source Control for Oracle verbose log file.
You will find the log files in this folder:
C:\Users\<user name>\AppData\Local\Red Gate\Logs\Schema Compare for Oracle.
Once the email is received a support ticket will be created and I will follow up via the Redgate Support ticketing system.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Thank you for your update to this forum post.
To investigate further I need further information from you.
The 'An item with the same key has already been added' is very generic error message and from my experience has many different situations that can cause it to occur.
However from your description of the problem, I believe it is unrelated to the original post in this topic.
Would please increase the minimum logging level to verbose as per this help article if using the GUI to perform your comparison and deployment:
https://documentation.red-gate.com/sco4/troubleshooting/logging-and-log-files
Repeat the comparison and deployment attempt to generate the verbose log file.
Or if using the command line, add the /loglevel:verbose switch to the command line syntax. Run the command commands to reproduce the error and consequentially generate a log file.
Email support@red-gate.com with a copy of the Source Control for Oracle verbose log file.
You will find the log files in this folder:
C:\Users\<user name>\AppData\Local\Red Gate\Logs\Schema Compare for Oracle.
Once the email is received a support ticket will be created and I will follow up via the Redgate Support ticketing system.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
I have just updated the support ticket I have with your colleague, Support Ticket #105046, with details of a private build to download. Please let me know if it fixes this problem for you.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
I have sent to you, individually, a private message from this forum.
The message contains details of a private build of Schema Compare for Oracle to download. Please reply and let me know if it fixes the problem for you.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Thank you for you reply and excellent news that the private build has resolved the error. This will be rolled up into the next official release of Schema Compare. Please continue to use the private build until the official release becomes available.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
Can you please provide a private build or a distributed hotfix for this? Thanks.
Charli
Thanks for your post.
Could you post this instead in the relevant forum for SQL Compare?
The link is below for you.
https://forum.red-gate.com/categories/sql-compare-12
Also, if you have a support contract you can send us a ticket so that a support engineer can look in to your issue for you.
Kind regards
Richard Lynch.
Redgate Software