Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
82 views
in SharePoint by 20 34 41

I am trying to restore a site collection backup on PowerShell using Restore-spsite, but I got the bellow error:

How to solve the unsuccessful Restore-spsite operation?


1 Answer

0 like 0 dislike
by 20 34 41

To solve Restore-spsite: The operation that you are attempting to perform cannot be completed successfully

Try the following solutions:

  • Check if the content database has not reached its maximum capacity.
  • Create a new content database and restore your backup to the specific content database.
`Restore-SpSite “http://mysitecollectionURL/” -Path "D:\pathname\Backup.bak" -Force -DatabaseServer <SQL server name> - 
  DatabaseName <DB>`
  • If the restored site collection is already existed use -force parameter to force the restore and overwrite the database.

  • If you want to delete and restore the site collection, make sure you deleted with the "Remove-SPDeletedSite" cmdlet.

If you don’t ask, the answer is always NO!
...