嘗試核准 Microsoft 信箱記錄的電子郵件位址時,發生「CrmSecurity 發生失敗」錯誤 Dynamics 365

本文提供當您在 Microsoft Dynamics 365 中選取信箱記錄上的 [核准 Email] 按鈕時所發生錯誤的解決方案。

適用於:Microsoft Dynamics 365 Customer Engagement Online
原始 KB 編號: 4510938

徵狀

當您選取信箱記錄上的 [核准 Email] 按鈕時,您會收到下列錯誤:

「錯誤
CrmSecurity 發生失敗。 如果您連絡支持人員,請提供技術詳細數據。」

原因

如果您嘗試以沒有下列兩個必要角色的使用者身分核准電子郵件,就會發生此錯誤:

  • Office 365 中的全域管理員或 Exchange 系統管理員
  • Dynamics 365 中的系統管理員安全性角色

解決方案

根據預設,Dynamics 365 要求 Dynamics 365 中電子郵件位址的核准是由具有原因一節中所述之兩個必要角色的人員執行。 Dynamics 365 中的系統管理員角色或 Office 365 中的 Dynamics 365 服務管理員角色不足以執行此動作。 如需如何停用此需求的詳細資訊,請參閱 Dynamics 365 中信箱核准的變更

其他相關資訊

如果您選取 [ 下載記錄檔] 按鈕,您會看到類似下列範例的詳細資料:

「未處理的例外狀況:System.ServiceModel.FaultException'1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException (0x80004005) : 擲回類型 'System.Web.HttpUnhandledException' 的例外狀況。 >--- Microsoft.Crm.CrmException:佇列:a5efd992-dbc6-48af-ad61-09e0258edb68 電子郵件example@contoso.com與 UPN 不符。 使用者 39ff663e-a75a-e811-a986-000d3a3672b5 應該是全域系統管理員,才能在組織<>中核准信箱。
at Microsoft.Crm.Dialogs.ApproveEmailAddressDialogPage.ConfigureForm ()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender (EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender (EventArgs e)
在 System.Web.UI.Control.PreRenderRecursiveInternal ()
at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.HandleError (Exception e)
at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest (Boolean includeStagesBeforeAsyncPoint,布爾值 includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest ()
在 System.Web.UI.Page.ProcessRequest (HttpContext 內容)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute ()
在 System.Web.HttpApplication.ExecuteStepImpl (IExecutionStep 步驟)
在 System.Web.HttpApplication.ExecuteStep (IExecutionStep 步驟中,布爾值& 以異步方式完成) :Microsoft Dynamics CRM 發生錯誤。 系統管理員或支持的參考編號:#3A5E4FEADetail:
<OrganizationServiceFault xmlns:i=“https://www.w3.org/2001/XMLSchema-instance" xmlns=”https://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId><ID></ActivityId
<ErrorCode> **-2147220970** </ErrorCode>
<ErrorDetails xmlns:d2p1=“https://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<訊息>System.Web.HttpUnhandledException (0x80004005) :擲回 'System.Web.HttpUnhandledException' 類型的例外狀況。 >--- Microsoft.Crm.CrmException:**佇列:a5efd992-dbc6-48af-ad61-09e0258edb68 電子郵件example@contoso.com與 UPN 不符。 使用者 39ff663e-a75a-e811-a986-000d3a3672b5 應該是全域系統管理員,才能在組織<>中核准信箱**。
at Microsoft.Crm.Dialogs.ApproveEmailAddressDialogPage.ConfigureForm ()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender (EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender (EventArgs e)
在 System.Web.UI.Control.PreRenderRecursiveInternal ()
at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.HandleError (Exception e)
at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest (Boolean includeStagesBeforeAsyncPoint,布爾值 includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest ()
在 System.Web.UI.Page.ProcessRequest (HttpContext 內容)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute ()
在 System.Web.HttpApplication.ExecuteStepImpl (IExecutionStep 步驟)
在 System.Web.HttpApplication.ExecuteStep (IExecutionStep 步驟中,布爾值& 以異步方式完成) :Microsoft Dynamics CRM 發生錯誤。 系統管理員或支持的參考編號:#3A5E4FEA
<Timestamp>2018-12-04T18:17:41.8971683Z</Timestamp
<ExceptionRetriable>false
<ExceptionSource i:nil=“true” />
<InnerFault>
<ActivityId><ID></ActivityId
<ErrorCode> **-2147220906** </ErrorCode><ErrorDetails xmlns:d3p1=“https://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<訊息>佇列:a5efd992-dbc6-48af-ad61-09e0258edb68 電子郵件 testdl@MyContosoDemo.onmicrosoft.com 與 UPN 不符。 使用者 39ff663e-a75a-e811-a986-000d3a3672b5 應該是全域系統管理員,才能在組織<>中核准信箱。</消息>
<Timestamp>2018-12-04T18:17:41.8981705Z</Timestamp
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil=“true” />
<InnerFault i:nil=“true” />
<OriginalException i:nil=“true” />
<TraceText i:nil=“true” />
</InnerFault>
<OriginalException i:nil=“true” />
<TraceText i:nil=“true” />
</OrganizationServiceFault>”