1

I have a SharePoint site collection at https://myurl.com/bi and under that a site called help. I’m trying to export a single list (a task list called testtasks) out of there through PowerShell using the following command:

Export-SPWeb –Identity https://myurl.com/bi -path “c:\export\export.cmp” –itemurl “/bi/help/lists/testtasks” –verbose

However, this just fails with the following:

Export-SPWeb: At line:1 char:1
CategoryInfo: InvalidData
FullyQualifiedError: Microsoft.Sharepoint.PowerSHell.SPCmdLetExportWeb

I’m guessing this is some sort of syntax error and reading around it seems to be the –ItemUrl param that’s problematic. However, I’ve tried lots of combinations, including

–itemurl “/bi/help/lists/testtasks”
–itemurl “/help/lists/testtasks”
–itemurl “help/lists/testtasks”
–itemurl “bi/help/lists/testtasks”
–itemurl https://myurl.com/bi/help/lists/testtasks

But get the same error (or an error telling me its an invalid URL.

I've previously run Add-SPShellAdmin for my user and also given myself db_owner permissions on the DB.

Can anyone fathom what I’m doing wrong here or if I’ve missed something?

Thanks

  • Can You try to do it with HTTP, not with HTTPS? – Gennady G Feb 6 '15 at 11:54
1

Reproduced. In my case works this code

Export-SPWeb "http://localhost/sites/bi/help/" -path "c:\export\export.cmp" –itemurl "Lists/testtasks"  –verbose 
  • 1
    Thank you. This syntax did indeed work. Seems the online documentation is so inconsistent :( – LDJ Feb 6 '15 at 12:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.