Friday 11 July 2014

Cannot complete action . Please Try again :SharePoint

Cannot complete action . Please Try again
I am trying to restore my site collection backup...
I got "Cannot complete action . Please Try again" error
What I did:
Open Command prompt
Run as Administrator
Go below path using CD
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
Now type stsadm
Enter
You will see all commands
Now i Used below command...
stsadm –o restore –url http://SP2010/sites/MyColl -filename \\Server\Mycoll.bak
What i did wrong, i gave share path, actually my running server is not having permission on the share path . so killed the process my self..
That is the wrong i did
Solution:
Run below command
stsadm -o databaserepair -url http://SP2010/sites/MyColl -databasename YourdatabaseName
how to get the "YourdatabaseName"
1.Open Central Administration --> Application Management
2.View all site collections Under Site Collections
3.Select the Web Application from right side dropdown...
You will find all Site collections in that web application
You will find : MyColl
But Database Name: is empty.....?
Don't worry
The Database Name is same for all site collections in that web application
Clickon other site collection, copy Data base name.....
Ex: WSS_Content
stsadm -o databaserepair -url http://SP2010/sites/MyColl -databasename WSS_Content
Execute above command
Now execute below command
stsadm -o databaserepair -url http://SP2010/sites/MyColl -databasename WSS_Content -deletecorruption
Now we are ready to restore our Site collectcion .bak file
Copy .bak to server where you are running the command
Run below command
stsadm –o restore –url http://SP2010/sites/MyColl -filename C:/Mycoll.bak