You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call Save() method without any modification I get an error
at PnP.Core.Model.SharePoint.PageWebPart.ToHtml(Single controlIndex)
at PnP.Core.Model.SharePoint.CanvasColumn.ToHtml()
at PnP.Core.Model.SharePoint.CanvasSection.ToHtml()
at PnP.Core.Model.SharePoint.Page.ToHtml()
at PnP.Core.Model.SharePoint.Page.<SaveAsync>d__151.MoveNext()
at PnP.Core.Model.SharePoint.Page.Save(String pageName)
at Program.<<Main>$>d__0.MoveNext() in C:\P\PnPCoreTests\Program.cs:line 167
Steps to reproduce
varpnpContextFactory=scope.ServiceProvider.GetRequiredService<IPnPContextFactory>();varcontext=awaitpnpContextFactory.CreateAsync(newUri(siteUrl));varpg=context.Web.GetPages("Page With FullWidth Sections.aspx");varf=pg.First();f.Save();f.Publish();
Category
Describe the bug
When I call

Save()
method without any modification I get an errorSteps to reproduce
Expected behavior
The page saves without error.
Environment details (development & target environment)
Additional context
What I am trying to achieve is removing header from Communication Site page, works in UI but does not work in the code.
The text was updated successfully, but these errors were encountered: