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
Running the Set-PnPHomePage command returned an error that I expected at this point, but I noticed when I looked at the error details, it seems that Erwin Vanhonen's local file path is somewhere in the code.
I was worried at first that something was going on with my PC and set off security alarm bells in my head until I thought about it. It seems it's just something from the build process I'm guessing? I'm not sure if this is something that can be cleaned up so that it should be an issue in the project or if there is nothing to be done about it.
Full error
`$Error[0] | Format-List * -Force
PSMessageDetails :
Exception : Microsoft.SharePoint.Client.ServerUnauthorizedAccessException: Access denied. You do not have permission to perform this action or access this resource.
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServerAsync(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
at Microsoft.SharePoint.Client.BrandingExtensions.SetHomePage(Web web, String rootFolderRelativePath)
at PnP.PowerShell.Commands.Branding.SetHomePage.ExecuteCmdlet() in C:\Users\vanhunen\AppData\Local\Temp\871624b8-a57c-4890-ab73-7fb0ab96fabf\src\Commands\Branding\SetHomepage.cs:line 15
at PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord() in C:\Users\vanhunen\AppData\Local\Temp\871624b8-a57c-4890-ab73-7fb0ab96fabf\src\Commands\Base\PnPSharePointCmdlet.cs:line 93
TargetObject :
CategoryInfo : WriteError: (:) [Set-PnPHomePage], ServerUnauthorizedAccessException
FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Branding.SetHomePage
ErrorDetails : Access denied. You do not have permission to perform this action or access this resource.
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at New-UMSSharepointSite, C:\Users\marcg\Documents\PSCode\umso365PS\Public\New-UMSSharepointSite.ps1: line 114
at , : line 1
PipelineIterationInfo : {0, 1}`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Running the Set-PnPHomePage command returned an error that I expected at this point, but I noticed when I looked at the error details, it seems that Erwin Vanhonen's local file path is somewhere in the code.
C:\Users\vanhunen\AppData\Local\Temp\871624b8-a57c-4890-ab73-7fb0ab96fabf\src\Commands\Branding\SetHomepage.cs:line 15
I was worried at first that something was going on with my PC and set off security alarm bells in my head until I thought about it. It seems it's just something from the build process I'm guessing? I'm not sure if this is something that can be cleaned up so that it should be an issue in the project or if there is nothing to be done about it.
Full error
`$Error[0] | Format-List * -Force
PSMessageDetails :
Exception : Microsoft.SharePoint.Client.ServerUnauthorizedAccessException: Access denied. You do not have permission to perform this action or access this resource.
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServerAsync(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
at Microsoft.SharePoint.Client.BrandingExtensions.SetHomePage(Web web, String rootFolderRelativePath)
at PnP.PowerShell.Commands.Branding.SetHomePage.ExecuteCmdlet() in C:\Users\vanhunen\AppData\Local\Temp\871624b8-a57c-4890-ab73-7fb0ab96fabf\src\Commands\Branding\SetHomepage.cs:line 15
at PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord() in C:\Users\vanhunen\AppData\Local\Temp\871624b8-a57c-4890-ab73-7fb0ab96fabf\src\Commands\Base\PnPSharePointCmdlet.cs:line 93
TargetObject :
CategoryInfo : WriteError: (:) [Set-PnPHomePage], ServerUnauthorizedAccessException
FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Branding.SetHomePage
ErrorDetails : Access denied. You do not have permission to perform this action or access this resource.
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at New-UMSSharepointSite, C:\Users\marcg\Documents\PSCode\umso365PS\Public\New-UMSSharepointSite.ps1: line 114
at , : line 1
PipelineIterationInfo : {0, 1}`
Beta Was this translation helpful? Give feedback.
All reactions