Invoke-PnPSiteTemplate : A duplicate field name "xxx" was found #2321
Unanswered
kongmengfei
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello, i want to copy my test SharePoint site to prod site. so I use below script but meet error:
`$siteUrl = "https://abc.sharepoint.com/sites/test"
$siteUrlqa = "https://curecorona.sharepoint.com/sites/prod"
$spUserName = "xxx@abc.onmicrosoft.com"
$password = "zzzzzzz"
$encpassword = convertto-securestring -String $password -AsPlainText -Force
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $spUserName, $encpassword
Connect-PnPOnline -Url $SiteURL -Credentials $Credential
$templatePath = '.\Template.pnp'
Get-PnPSiteTemplate -Out $templatePath -Force
#install
Connect-PnPOnline -Url $siteUrlqa -Credentials $Credential
Invoke-PnPSiteTemplate -Path Template.pnp -Handlers Lists, Navigation, ContentTypes, Fields, SiteSettings, TermGroups`
does not the command overwrite the existing field?
Environment:
SharePoint Online
pnp PowerShell lastest version
I only searched this: pnp/PnP-Sites-Core#1868
thanks
Beta Was this translation helpful? Give feedback.
All reactions