SharePoint Granular Restore Fails with “InvalidData” Error (Restore-SPSite PowerShell Fails)
One of my friend came up with the Error on PowerShell during a Restoration of SharePoint Granular Backup to another Farm.
https://manojviduranga.files.wordpress.com/2014/09/restoreerror_thumb.jpg?w=644&h=259
————————————————————————————————————————————————————-
Restore-SPSite : <nativehr>0x80070003</nativehr><nativestack></nativestack>
At line:1 char:1
+ Restore-SPSite http://Source-Site -Path C:\bkp\SourceSite.bak
-HostHeade …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\+ CategoryInfo : InvalidData: (Microsoft.Share…dletRestoreSite: SPCmdletRestoreSite) \[Restore-SPSite\], DirectoryNotFoundException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreSite
————————————————————————————————————————————————————-
After Checking all the Event Logs and Destination Databases etc.… realized that this cannot be an issue of the Destination Farm. Tried to backup the same Site Collection from source Farm via Central Admin Thrown an Failure at the end of the Backup job.
[](https://manojviduranga.files.wordpress.com/2014/09/image.png)<https://manojviduranga.files.wordpress.com/2014/09/image_thumb.png?w=644&h=134>
I Always Prefer PowerShell for SharePoint Administration because that’s the ultimate tool to get almost anything done when we stuck on UI. before finding the root cause for this failure through UI, made it to PowerShell since the Destination restoration was a urgent thing to do. If You face the same, Use Below Shell Line to Execute a Granular Site Collection Backup.
**`Backup-SPSite `**[**`http://SourceSiteURL`**](http://sourcesiteurl/)**` -Path "C:\site.bak"`**
This Ran very well and realized the size of the .bak file is pretty large than the one came out with errors through UI.
Used the New backup file to Restore and it went like a Charm. Making sure on the success result at the end of a backup job will save your day…