Eksport-SPWeb tregon mua "InvalidData” Por dhënave është i vlefshëm

I’m in the process of writing an article for the good people at www.sharepointbriefing.com and it involves deploying an list from a development farm to a production farm.  Unë jam ende të mësuar për të përdorur stsadm dhe kanë nevojë për të thyer se zakon, kështu që unë shkarkuar deri SharePoint 2010 Management Shell and played around using Export-SPWeb to backup my list.  What a strangely difficult thing that proved to be!

I kept getting this error:

image

That error, “InvalidData: (Microsoft.Share…CmdletExportweb"”) was killing me.  I’m embarrassed at how long I struggled with this.

I had previously run into a wall with PowerShell and used stsadm to get around it.  I tried it again this time and I got good results.

I spent a lot of time fiddling around with the –Identity option and then finally with –ItemURL.  It turns out that the ItemURL option requires a full path of the list/library you  want to export without the http://server bit.  Kështu, despite the fact that the Identity argument is pointing to a subsite, the ItemURL is not relative to the Identify but relative to the site collection.

It would have been nice for the cmdlet to tell me what was minimally valid (the Identity in this case) and what was invalid (ItemUrl).  These little touches help people embrace the product.  Not a big ding against SharePoint, por të paktën një i vogël 🙂

Hopefully this post will save someone a bit of grief in future.

</fund>

Abonohen në blogun tim.

Atëherë ejani pas meje në Twitter në http://www.twitter.com/pagalvin

2 mendime mbi "Eksport-SPWeb tregon mua "InvalidData” Por dhënave është i vlefshëm

  1. Eugene

    Thanks so much! I’ve spent a lot of timereadign forums with no result.
    Finally I found your post that helped me with exporting library. Thanks one more time.

Lini një Përgjigju

Adresa juaj e emailit nuk do të publikohet. Fusha e kërkuar janë shënuar *