Exception while adding multiple databases to a web application programatically RRS feed

  • Question

  • I  am trying to attach multiple databases of a web application of MOSS 2007 Server to a web application in SharePoint 2010.I have taken the backup from 2007 server and restored it to SQL server on 2010 server.I am able to add the very first content db in the dbcollection but while adding others  I am getting the SPUPdatedConcurrencyException.The details are as following:

    Exception : An update conflict has occurred, and you must re-try this action. The object SPWebApplication Name=Sharepoint-11223 was updated by login(...)..., in the WCFSP2010 (4736) process, on machine ...

    The part of code that is throwing error is :     

    foreach (SP2010WCFAgent.BusinessEntities.Database database in databaseCollection)


    contentDatabases.Add(DbMigrattionConfigSettings.DestinationSQLServer, database.Name, null, null, 1000, 15000, 0);



            Any pointers to this will help.

    • Edited by Garima17 Wednesday, May 2, 2012 12:56 PM
    Wednesday, May 2, 2012 12:53 PM


All replies