Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
731 views
in SharePoint by 20 36 42

I have list backup .cmp files that i want to import to new site using powershell i use this command:

Import-SPWeb -Identity https://site/projects/sharepoint/Lists -Path "c:\shareponit\data.cmp"

it returns an error:

Import-SPWeb : Cannot find an SPWeb object with Id or Url :https://site/projects/sharepoint/Lists.

How to import List backup to new site?


1 Answer

0 like 0 dislike
by 20 36 42

To import List with powershell using "Import-SPWeb" cmdlet

Do not add "/Lists" to your site path the site knows where the lists at.

Import-SPWeb -Identity https://site/projects/sharepoint -Path "c:\shareponit\data.cmp"
If you don’t ask, the answer is always NO!
...