can not access package

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
\\abcde...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:
   SPCmdletImportWeb) [Import-SPWeb], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWe
   b

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

Regards,

Praveen

May 20th, 2015 1:14am

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:

Import-SPWeb

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

Thanks

Best Regards

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 2:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics