v3.7.4.425 - duplicate objects found with name...
jsreynolds1
Posts: 93 Silver 2
Not something I've seen before.
"Duplicate objects found with name [dbo].[Documents]: found objects with ids: 65552, 0"
I have sent an error report. Ironically I can't copy/paste the error report to put here.
I have re-loaded my Git repository on disk; no change. Doesn't seem to happen for other databases.
Any thoughts about what more I can provide or do?
Thank you,
John
"Duplicate objects found with name [dbo].[Documents]: found objects with ids: 65552, 0"
I have sent an error report. Ironically I can't copy/paste the error report to put here.
I have re-loaded my Git repository on disk; no change. Doesn't seem to happen for other databases.
Any thoughts about what more I can provide or do?
Thank you,
John
Comments
In most cases, a duplicate definition occurs within the files in your repository rather than the database itself. There's a few causes, the most common either being a user has manually altered the files in some way or it's a bug.
To find the offending file, it's usually possible to check out a copy of your repo to a temporary folder on your machine using the tool supplied with your source control system (i.e. Tortoise if you use SVN etc).
Once checked out, you can run a command to locate all instances of the object in the error message ([dbo].[Documents]) - running this command in the root of the checkout folder:
Hopefully that will yield more than one file which contains the creation SQL for the FK in question (or the definition will be duplicated in one file, although we tend to see that more with triggers) - once you find the issue, you'll need to correct it in the repository copy of the file, and finally unlink and relink the database from source control to refresh our working copies. Hopefully that should sort it out.
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com