PnP PowerShell Apply-ProvisioningTemplate error : Sequence contains more than one matching element

%3CLINGO-SUB%20id%3D%22lingo-sub-25247%22%20slang%3D%22en-US%22%3EPnP%20PowerShell%20Apply-ProvisioningTemplate%20error%20%3A%20Sequence%20contains%20more%20than%20one%20matching%20element%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-25247%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20someone%20look%20at%20the%20template%20and%20advise%20why%20I'm%20getting%20this%20strange%20message.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20template%20was%20created%20using%20the%26nbsp%3BGet-SPOProvisioningTemplate%20powershell%20command%2C%20the%20error%20I%20get%20is%20during%20the%20execution%20of%26nbsp%3BApply-SPOProvisioningTemplate.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20got%20this%20message%20on%20the%20original%20template%20and%20after%20stripping%20out%20more%20than%20half%20of%20it%2C%20I'm%20still%20getting%20the%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20attaching%20the%20verbose%20logging%20(apply_result.txt)%20and%20the%20original%20template%20and%20the%20stripped%20down%20template%3C%2FP%3E%3CP%3E(I%20just%20renamed%20the%20pnp%20files%20for%20easier%20identification%2C%20the%20original%20name%20was%20%22template2.pnp%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAppreciate%20any%20insights!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3EJan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-25247%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-25326%22%20slang%3D%22en-US%22%3ERe%3A%20PnP%20PowerShell%20Apply-ProvisioningTemplate%20error%20%3A%20Sequence%20contains%20more%20than%20one%20matching%20eleme%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-25326%22%20slang%3D%22en-US%22%3E%3CP%3EApologies%20-%20it%20seems%20like%20the%26nbsp%3Bselected%20files%20don't%20get%20attached%20when%20I%20click%20%22Post%22...%20I'll%20zip%20them%20together.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHerewith%20the%20output%20of%20the%20%3CSPAN%3EApply-SPOProvisioningTemplate%3C%2FSPAN%3E%20command%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5Ctemp%5Csopt%26gt%3B%20Apply-SPOProvisioningTemplate%20-Path%20template2.pnp%20%26gt%3B%20apply_result.txt%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A27.2777%20%5BOfficeDevPnP.Core%5D%20%5B0%5D%20%5BInformation%5D%20File%20template2.pnp%20retrieved%20from%20folder%200ms%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A27.2798%20%5BOfficeDevPnP.Core%5D%20%5B0%5D%20%5BInformation%5D%20File%20template2.pnp%20retrieved%20from%20folder%200ms%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A27.3138%20%5BOfficeDevPnP.Core%5D%20%5B0%5D%20%5BInformation%5D%20File%20template2.xml%20retrieved%20from%20folder%200ms%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A27.3308%20%5BProvisioning%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A27.3318%20%5BProvisioning%5D%20%5B7%5D%20%5BInformation%5D%20ProgressDelegate%20registered%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A27.3328%20%5BProvisioning%5D%20%5B7%5D%20%5BInformation%5D%20MessagesDelegate%20registered%201ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A35.2850%20%5BExtensibility%20Providers%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A35.2870%20%5BExtensibility%20Providers%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%201ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A35.7122%20%5BRegional%20Settings%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A36.1122%20%5BRegional%20Settings%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%20400ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A36.1458%20%5BSupported%20UI%20Languages%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A37.0531%20%5BSupported%20UI%20Languages%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%20906ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A37.0630%20%5BFeatures%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A37.6441%20%5BFeatures%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%20580ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A37.6532%20%5BList%20instances%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A39.1894%20%5BList%20instances%5D%20%5B7%5D%20%5BDebug%5D%20Updating%20list%20Project%20Risks%20Issues%20Log%201536ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A40.8540%20%5BList%20instances%5D%20%5B7%5D%20%5BDebug%5D%20Creating%20view%20All%20Items%203200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A42.8749%20%5BList%20instances%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%205221ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A42.8769%20%5BLookup%20Fields%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A55.9791%20%5BLookup%20Fields%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%2013101ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A55.9885%20%5BPages%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A28%3A58.1082%20%5BPages%5D%20%5B7%5D%20%5BDebug%5D%20Overwriting%20existing%20page%20%2Fsites%2Fpnptemplatesite1%2Fsite1111%2FSitePages%2FHome.aspx%202119ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Error%3A%200%20%3A%202016-10-27%2015%3A28%3A58.6175%20%5BPages%5D%20%5B7%5D%20%5BError%5D%20Overwriting%20existing%20page%20%2Fsites%2Fpnptemplatesite1%2Fsite1111%2FSitePages%2FHome.aspx%20failed%3A%20The%20item%20that%20you%20are%20trying%20to%20delete%20is%20the%20current%20welcome%20page%20and%20cannot%20be%20deleted.%20%3A%20at%20Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream%20responseStream)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder%20sb)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext%20clientContext%2C%20Int32%20retryCount%2C%20Int32%20delay)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext%20clientContext%2C%20Int32%20retryCount%2C%20Int32%20delay)%3CBR%20%2F%3Eat%20OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectPages.ProvisionObjects(Web%20web%2C%20ProvisioningTemplate%20template%2C%20TokenParser%20parser%2C%20ProvisioningTemplateApplyingInformation%20applyingInformation)%202628ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A00.5284%20%5BPages%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%204539ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A00.5394%20%5BPublishing%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A04.6417%20%5BPublishing%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%204101ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A04.6597%20%5BProperty%20bag%20entries%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A10.3504%20%5BProperty%20bag%20entries%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%205690ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A10.3865%20%5BWeb%20Settings%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A11.8833%20%5BWeb%20Settings%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%201496ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A12.3646%20%5BNavigation%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20started%200ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A19.7632%20%5BNavigation%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%207397ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3Epowershell.exe%20Information%3A%200%20%3A%202016-10-27%2015%3A29%3A19.7642%20%5BProvisioning%5D%20%5B7%5D%20%5BDebug%5D%20Code%20execution%20scope%20ended%2052432ms%205fb0f8aa-05f6-4115-a601-59aae2a84f69%3CBR%20%2F%3EApply-SPOProvisioningTemplate%20%3A%20Sequence%20contains%20more%20than%20one%20matching%20element%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Apply-SPOProvisioningTemplate%20-Path%20template2.pnp%20%26gt%3B%20apply_result.txt%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20WriteError%3A%20(%3A)%20%5BApply-SPOProvisioningTemplate%5D%2C%20InvalidOperationException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20EXCEPTION%2CSharePointPnP.PowerShell.Commands.Provisioning.ApplyProvisioningTemplate%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-25255%22%20slang%3D%22en-US%22%3ERe%3A%20PnP%20PowerShell%20Apply-ProvisioningTemplate%20error%20%3A%20Sequence%20contains%20more%20than%20one%20matching%20eleme%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-25255%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F7798%22%20target%3D%22_blank%22%3E%40Jan%20Vorster%3C%2FA%3E%2C%20I%20can't%20see%20any%20attachments.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20assuming%20that%20you%20use%20Set-SPOTraceLog.%20Could%20you%20copy%20the%20last%2010%20lines%20or%20so%20in%20this%20post.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Can someone look at the template and advise why I'm getting this strange message.

 

The template was created using the Get-SPOProvisioningTemplate powershell command, the error I get is during the execution of Apply-SPOProvisioningTemplate.

 

 

I got this message on the original template and after stripping out more than half of it, I'm still getting the error.

 

I'm attaching the verbose logging (apply_result.txt) and the original template and the stripped down template

(I just renamed the pnp files for easier identification, the original name was "template2.pnp")

 

Appreciate any insights!

 

Thank you,

Jan

2 Replies
Highlighted

@Jan Vorster, I can't see any attachments.

 

I'm assuming that you use Set-SPOTraceLog. Could you copy the last 10 lines or so in this post.

 

 

Highlighted

Apologies - it seems like the selected files don't get attached when I click "Post"... I'll zip them together.

 

Herewith the output of the Apply-SPOProvisioningTemplate command:

 

PS C:\temp\sopt> Apply-SPOProvisioningTemplate -Path template2.pnp > apply_result.txt
powershell.exe Information: 0 : 2016-10-27 15:28:27.2777 [OfficeDevPnP.Core] [0] [Information] File template2.pnp retrieved from folder 0ms
powershell.exe Information: 0 : 2016-10-27 15:28:27.2798 [OfficeDevPnP.Core] [0] [Information] File template2.pnp retrieved from folder 0ms
powershell.exe Information: 0 : 2016-10-27 15:28:27.3138 [OfficeDevPnP.Core] [0] [Information] File template2.xml retrieved from folder 0ms
powershell.exe Information: 0 : 2016-10-27 15:28:27.3308 [Provisioning] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:27.3318 [Provisioning] [7] [Information] ProgressDelegate registered 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:27.3328 [Provisioning] [7] [Information] MessagesDelegate registered 1ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:35.2850 [Extensibility Providers] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:35.2870 [Extensibility Providers] [7] [Debug] Code execution scope ended 1ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:35.7122 [Regional Settings] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:36.1122 [Regional Settings] [7] [Debug] Code execution scope ended 400ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:36.1458 [Supported UI Languages] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:37.0531 [Supported UI Languages] [7] [Debug] Code execution scope ended 906ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:37.0630 [Features] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:37.6441 [Features] [7] [Debug] Code execution scope ended 580ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:37.6532 [List instances] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:39.1894 [List instances] [7] [Debug] Updating list Project Risks Issues Log 1536ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:40.8540 [List instances] [7] [Debug] Creating view All Items 3200ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:42.8749 [List instances] [7] [Debug] Code execution scope ended 5221ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:42.8769 [Lookup Fields] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:55.9791 [Lookup Fields] [7] [Debug] Code execution scope ended 13101ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:55.9885 [Pages] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:28:58.1082 [Pages] [7] [Debug] Overwriting existing page /sites/pnptemplatesite1/site1111/SitePages/Home.aspx 2119ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Error: 0 : 2016-10-27 15:28:58.6175 [Pages] [7] [Error] Overwriting existing page /sites/pnptemplatesite1/site1111/SitePages/Home.aspx failed: The item that you are trying to delete is the current welcome page and cannot be deleted. : at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay)
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay)
at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectPages.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation) 2628ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:00.5284 [Pages] [7] [Debug] Code execution scope ended 4539ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:00.5394 [Publishing] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:04.6417 [Publishing] [7] [Debug] Code execution scope ended 4101ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:04.6597 [Property bag entries] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:10.3504 [Property bag entries] [7] [Debug] Code execution scope ended 5690ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:10.3865 [Web Settings] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:11.8833 [Web Settings] [7] [Debug] Code execution scope ended 1496ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:12.3646 [Navigation] [7] [Debug] Code execution scope started 0ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:19.7632 [Navigation] [7] [Debug] Code execution scope ended 7397ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
powershell.exe Information: 0 : 2016-10-27 15:29:19.7642 [Provisioning] [7] [Debug] Code execution scope ended 52432ms 5fb0f8aa-05f6-4115-a601-59aae2a84f69
Apply-SPOProvisioningTemplate : Sequence contains more than one matching element
At line:1 char:1
+ Apply-SPOProvisioningTemplate -Path template2.pnp > apply_result.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Apply-SPOProvisioningTemplate], InvalidOperationException
+ FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.ApplyProvisioningTemplate