Forum Discussion

Nabajyoti Bhattacharjee's avatar
Nabajyoti Bhattacharjee
Copper Contributor
Jan 08, 2017

cmdlets are not working for applying a template to a new site; how to debug

I am trying to use the provisioning cmdlets; i took the xml of a source site and while aplying the xml using apply template got the below error which i dont know muche how to debug.

 

 

PS D:\PartnerPack> Apply-PnPProvisioningTemplate -Path <path of xml>
Apply-PnPProvisioningTemplate : Cannot complete this action.
Please try again.
At line:1 char:1
+ Apply-PnPProvisioningTemplate -Path <path of xml>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Apply-PnPProvisioningTemplate],
ServerException
+ FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Prov
isioning.ApplyProvisioningTemplate

PS D:\PartnerPack>

1 Reply

  • The first option for debugging any of the pnp power shell is

    Set-pnptracelog -on level debug

    Then rerun the apply command.

Resources