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

My attempts to import an exported list of tasks are failing

$
0
0

I have exported a list of tasks from a subsite successfully and I'm unable to import this content back to a new location. 

Here is how I created the output from export: 

export-SPWeb http://blacktip/sites/cbmi/SPWG -ItemUrl "/sites/cbmi/SPWG/Lists/Tasks"

-Path c:\SharepointBackups\Export-SitesAndLists\sites-cbmi-SPWG-Lists-Tasks.cmp -Force

There are roughly a dozen tasks in the above list. My target destination is in a different web application (port 81) and a List called Tasks exists there already but is empty. I want to import the Tasks from the exported path and populate this [target] list called Tasks with the items from the export. I can post the log file from the export but it all looks good. 

Here is my syntax for the import operation (note the port 81; all mysites on web app for this port):

import-spweb "http://blacktip:81/mysites/jack/SPWG/Lists/Tasks"

-Path "c:\SharepointBackups\Export-SitesAndLists\sites-cbmi-SPWG-Lists-Tasks.cmp"

-IncludeUserSecurity -Force

Here is the error info I am getting: 

Import-SPWeb : Cannot find an SPWeb object with Id or Url : http://blacktip:81/mysites/jack/SPWG/Lists/Tasks.
At C:\Scripts\importListOfSubsiteSPWG.ps1:2 char:13+ import-spweb <<<<  "http://blacktip:81/mysites/jack/SPWG/Lists/Tasks" -Path "c:\SharepointBackups\Export-SitesAndLists\sites-cbmi-SPWG-Lists-Tasks.cmp" -IncludeUserSecur
ity -Force+ CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:SPCmdletImportWeb) [Import-SPWeb], SPCmdletPipeBindException+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb
I have researched and not found the technique I need yet. Thanks in advance. 


John



Viewing all articles
Browse latest Browse all 13778

Trending Articles



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