can not access package RRS feed

  • Question

  • Hi all,

    I used below script to import a xml file to sharepoint.

    Import-SPSite -Identity https://abcd.cmn.org/xyz -Path \\abcde\shared\file.xml -Force

    iam a farm admin i got below error  

    Import-SPWeb : Failed to read package file.
    At line:1 char:1
    + Import-SPWeb -Identity https://abcd.cmn.org/xyz -Path
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:
       SPCmdletImportWeb) [Import-SPWeb], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWe

    How to resolve this issue and in sharepoint site where this xml file is imported.Please help.Thanks in advance.



    Wednesday, May 20, 2015 5:13 AM


  • Hi,

    According to your description, my understanding is that you want to import a xml file to SharePoint using PowerShell Command.

    The Command "Import-SPWeb" is used to import a web ,list or  library, refer the article below:


    If you want to import a xml file to SharePoint site, you can directly upload the xml to SharePoint site document library.

    Here is a detailed articles for your reference:

    Use PowerShell Cmdlets to Manage SharePoint Document Libraries


    Best Regards

    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, May 21, 2015 6:34 AM