Powershell 部署PnP设置模板交互授权请求错误

Powershell 部署PnP设置模板交互授权请求错误,powershell,templates,sharepoint-online,pnp-js,Powershell,Templates,Sharepoint Online,Pnp Js,好的,我正在尝试将PnP配置模板部署到网站集。我遇到了以下错误,到目前为止运气不好。这是一篇关于我的命令和日志的更详细的文章 > Connect-PnPOnline -Url "site collection" > Apply-PnPProvisioningTemplate -Path "template.xml" WARNING: List Graphics (Graphics, ####) exists but is of a dif

好的,我正在尝试将PnP配置模板部署到网站集。我遇到了以下错误,到目前为止运气不好。这是一篇关于我的命令和日志的更详细的文章

> Connect-PnPOnline -Url "site collection" 
> Apply-PnPProvisioningTemplate -Path "template.xml"


WARNING: List Graphics (Graphics, ####) exists but is of a different type. Skipping
list.
Apply-PnPProvisioningTemplate : Object reference not set to an instance of an object.
At line:1 char:1
+ Apply-PnPProvisioningTemplate -Path "Template.xml" -Exclude ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Apply-PnPProvisioningTemplate], NullReferenceException
    + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.ApplyProvisioningTemplate
在此之后,我根据此处的另一位用户的建议启动了一个日志文件。在那个日志文件中,我得到了一些错误

set-pnptracelog -on -logfile traceoutput.txt

powershell.exe Warning: 0 : 2020-08-26 10:53:49.9215    [Site Security] [16]    [Information]   Failed to EnsureUser c:0o.c|federateddirectoryclaimprovider|##### 4715ms    ######
powershell.exe Error: 0 : 2020-08-26 10:53:51.1575  [OfficeDevPnP.Core] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerException: The specified user c:0o.c|federateddirectoryclaimprovider| ##### could not be found.
Server Details:
powershell.exe Error: 0 : 2020-08-26 10:54:50.2331  [List instances]    [16]    [Error] Error during webhook add/update: AADSTS65001: The user or administrator has not consented to use the application with ID '#####' named 'PnP Management Shell'. Send an interactive authorization request for this user and resource.
在这里运行这个之后,另一个用户建议我运行pnp配置模板,同时排除安全处理程序。这也不管用

Apply-PnPProvisioningTemplate -Path "Template.xml" -ExcludeHandlers SiteSecurity
注意:正在运行最新版本的SharePointPnPowershellonlien 3.24.2008.1