Pages

Monday, 26 March 2018

Site Collection Restore failed : InvalidData: (Microsoft.Share...dletRestoreSite: SPCmdletRestoreSite) [Restore-SPSite], DirectoryNotFoundException

Site-collection restore failed with below error

Restore-SPSite : 0x80070003 At line:1 char:1 + Restore-SPSite SiteURlTarget -Path C:\Backup\2018.bak -For ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ + CategoryInfo : InvalidData: (Microsoft.Share...dletRestoreSite: SPCmdletRestoreSite) [Restore-SPSite], DirectoryNotFoundException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreSite 


Cause: Database is not upgrade after installation of updates. 
Steps to resolves: 
1.       Upgrade the Database with below command. Upgrade-SPContentDatabase WSS_Content_DB


2.       Take the backup of collection   Backup-SPSite http://server:9999/source  -Path C:\Backup\myBackup2018.bak  

3.       Restore the backup.   Restore-SPSite http://server:9999/Target -Path C:\Backup\myBackup2018.bak

No comments:

Post a Comment