Pages

Thursday, June 22, 2017

Another object in this farm already contains the same ID


Cannot attach databases with same ID to different web applications

Databases with same internal ID cannot be attached web applications even if the databases have different name. If we try attach the database with same id, we would be get “another object in this farm already contains the same ID” as shown in below image.












We ran below commands to find and delete the database 

Get-SPDatabase | where{$_.Name -eq "webappliction Name"}
Remove-SPcontentdatabase –identity “ID of the DB”

The database attached successfully after we removed the existing database.