My error is below:
Import-SPWeb : The directory D:\Test\Test.cmp does not exist.
At line:1 char:1
+ Import-SPWeb -identity http://testsite -Path "D:\Test\Test.cmp"
-NoFi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...CmdletImportWeb:
SPCmdletImportWeb) [Import-SPWeb], SPException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWe
b
So I ran the export from Central Administration but I did say to include all versions. I did not check the user security box (which in reality I should have done!), but the problem here was that I did not have FileCompression on in the export from Central Admin. I added that switch to the cmdlet. So the Import would not work for that reason. I tried running:
Import-SPWeb -identity
Simply removing -NoFileCompression solved the issue and it imported.
Little road block that might annoy you!! :)
Holy cow thank you for this!
ReplyDeletethanks a lot :)
ReplyDeleteGreat :) It worked ! Thanks a lot !
ReplyDeletethanks. it worked. you save my afternoon
ReplyDeleteI add -NoFileCompression then import-spweb says to me "The directory does not exist", I delete -NoFileCompression and get the error "The file does not exist".
ReplyDelete