Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

powershell import-spweb fails with "parent does not exist" error.

$
0
0

So, I have a sp 2010 site at http://myfarm/sites/it/d22 and I want to copy the contents tohttp://myfarm/sites/bb/d62 .

I perform

Export-SPWeb -Identity  http://myfarm/sites/it/d22  -Path d:\temp\d22 -IncludeUserSecurity –IncludeVersions All  -NoFileCompression –Verbose

and then I perform

import-spweb -identity http://myfarm/sites/bb/d62 -path d:\temp\d22   -includeusersecurity  -nofilecompression -verbose -force

It runs for 4-5 minutes and then produces the error:

[Folder] []   Error: The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
[Folder] []   Error: The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
FatalError: The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
Progress: Import did not complete.
Finish Time: 6/11/2014 8:59:23 AM.
Duration: 00:03:40
Finished with 0 warnings.
Finished with 3 errors.

Log file generated:
        d:\temp\d22\import.log

Import-SPWeb : The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
At line:1 char:13
+ import-spweb <<<<  -identity http://myfarm/sites/bb/d62 -path d:\temp\d22   -includeusersecurity
  -nofilecompression -verbose -force
    + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:SPCmdletImportWeb) [Import-SPW
   eb], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb

Of course bb/d22/ADMIN does not exist - d22 exists under sites/it . And Admin should be part of the export of d22 that should be created if the process completes.

Anyone have any idea what is going on here?


Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>