Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Cannot import site - Import-SPWeb results in error

$
0
0

I'm trying to import a site that I exported using Export-SPWeb, and it's not working

Export command - this worked:

Export-SPWeb https://company.com/path1/oldsite -Path "SiteExport.cmp"

Import command - this did not work:

Import-SPWeb https://company.com/path2/newsite -Path "SiteExport.cmp" –UpdateVersions -Overwrite

My import command resulted in the following error:

Import-SPWeb : Cannot bind parameter 'UpdateVersions'. Cannot convert value "-Overwrite" to type "Microsoft.SharePoint.Deployment.SPUpdateVersions" due to invalid enumeration values. Specify one of the following enumeration values and try again. The possible enumeration values are "Append, Overwrite, Ignore". At line:1 char:122+ Import-SPWeb https://company.com/path2/newsite -Path "SiteExport.cmp" -UpdateVersions <<<<  -Overwrite    + CategoryInfo          : InvalidArgument: (:) [Import-SPWeb], ParameterBindingException    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.SharePoint.PowerShell.SPCmdletImportWeb

Any assistance would be great.  Could it be a permissions problem?


Viewing all articles
Browse latest Browse all 13778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>