pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
987 stars 662 forks source link

Add-PnPDataRowsToProvisioningTemplate is not working for me #2046

Open mukeshhope opened 5 years ago

mukeshhope commented 5 years ago

Hi Team,

When i try to add data rows to template using Add-PnPDataRowsToProvisioningTemplate. then its not working for me. provisioningerror

I have attached the screenshot of error . result of command Get-PnPException is given below Message : uri Stacktrace : at OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.XMLTemplateProvider.GetTemplate(String uri, String identifier, ITemplateFormatter formatter, ITemplateProviderExtension[] extensions) at OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.XMLTemplateProvider.GetTemplate(String uri, ITemplateProviderExtension[] extensions) at SharePointPnP.PowerShell.Commands.Provisioning.ReadProvisioningTemplate.LoadProvisioningTemplateFromFile(String templatePath, ITemplateProviderExtension[] templateProviderExtensions) at SharePointPnP.PowerShell.Commands.Provisioning.Site.AddDataRowsToProvisioningTemplate.ExecuteCmdlet() at SharePointPnP.PowerShell.Commands.PnPCmdlet.ProcessRecord() ScriptLineNumber : 1

my version of SharePointPnPPowershellOnline is 3.8.1904.0 Please suggest if i am doing something wrong

mukeshhope commented 5 years ago

Just for update. i got it working when i export the template in xml but does not work when it is pnp