Skip to main content

Posts

Showing posts from 2017

Add-PNPClientSideText Object reference not set to an instance of an object

When trying to use PNP to create SharePoint online pages I ran into this error. Add-PnPClientSideText -Page "Offices" -Text " City office Free phone: 12345 " -Column 2 -Section 5 -Order 5 Add-PnPClientSideText : Object reference not set to an instance of an object. At line:1 char:1 + Add-PnPClientSideText -Page "Offices" -Text " City office < ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : WriteError: (:) [Add-PnPClientSideText], NullReferenceException     + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.ClientSidePages.AddClientSideText The error is caused by having the page open in a browser window in Edit mode. Once you click Publish on the page in the browser the code runs fine.

O365 first time login Password change required

Just logged into O365 with a new account and got the following error using Google Chrome When I logged in using Microsoft Edge I got the change password screen. The server can't sign you in right now. Please try again later. MSSPError=(-2147217382)loginpost(778) X-ClientId: D9E0727DA9D04C63BD20E32C7EE40260 request-id 6d1cc7a0-5615-4fea-9b6c-2d9ac7690844 X-Auth-Error MSSPErrorException X-OWA-Version 15.20.56.14 X-FEServer SYXPR01CA0061 X-BEServer MEXPR01MB1048 Date:9/24/2017 7:47:30 PM