When stsadm.exe is used to back up a website set and restore it to other applications, the following errors often occur in the event log:
Event Type: Error
Event Source: Office Sharepoint Server
Event category: User Profiles
Event ID: 5553
Date: 4/28/2008
Time: 4:00:03
User: N/
COMPUTER :*****
Description:
Failure trying to synch site failed for contentdb login webapp ada1f800-c105-4970-bca0-c43d699daadc. exception message was cannot insert duplicate key row in object 'dbo. usermemberships 'with unique index 'cx _ usermemberships_recordid_membergroupid_sid '.
The reason for this is: in a form field, back up the current website level and restore it to another application. the same guid will be generated for data in two application locations. In this way, conflicts will occur during synchronization.
The solution is as follows:
Use contentdb to go to sqlserver to find the website level:
Database:Sharepoint_config,Table DBO. Objects
Select ID, classid, parentid, name, status, version, Properties
From objects where (ID = '5bafe2af-48a7-4043-a36d-29160f3b88e2 ')
After the website is set, continue with the following operations.
A. Detach the database first:
Ststam-O preparetomove-contentdb {sqlserver: databasename}-site {site collection's URL}
B. Delete the content database:
Stsadm-O deletecontentdb-URL {application's URL. Ex: http: // MOSS: 8080}-databasename {databasename}-databaseserver {SQL Sever name}
C. Reattach the database:
Stsadm-O addcontentdb-URL {application's URL. Ex: http: // MOSS: 8080}-databasename {databasename}-databaseserver {SQL Sever name
OK. Restart IIS.