Restore-SPSite Throws DirectoryNotFoundException

Copper Contributor

I have a SP2013 Farm and today we had a site collection with lots of lookup fields in lists get corrupted.  The lists have lost their referential integrity.  So - I figured that we could restore that site collection from last night's backup.  We restored the content database backup to another SQL server and then I went into Central Admin and did the Recover Data from an Unattached Database.  I found the Site Collection from the backup file and backed-up the site collection to a file on a fileshare.  

In order to test the backup file, I created a new web application on the same server and created the same paths.  The original path was http://reinfonet/apps/data and the new path is http://spweb1:8282/apps/data

 

When I run the following command:

Restore-SPSite -identity http://spweb1:8282/apps/data -path c:\spback\datasc.bak -Force

 

I get the following error:

 

Restore-SPSite : <nativehr>0x80070003</nativehr><nativestack></nativestack>
At line:1 char:1
+ Restore-SPSite -identity http://spweb1:8282/sites/data -path c:\spbak\datasc.bak ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...dletRestoreSite:SPCmdletRestoreSite) [Restore-SPSite], DirectoryNotFoundException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreSite

 

All searching on the internet says that the versions might be different, but that is usually when someone is trying to restore into a different farm.  I'm restoring from a backup of the same farm.

 

Any ideas?  I'm stuck and this is a production site collection.

1 Reply
Update: for a test, I did a Backup-SPSite to a file, and then attempted to use Restore-SPSite on the same file, just to a different Web app on the same farm. I get the same error.