Error HCW8064 during EXCH19 Hybrid configuration despite successful oAuth tests

Louis CI Lo 65 Reputation points
2023-11-09T03:19:48.0533333+00:00

I reran the HCW to update the certificate and servers for send/receive connectors from EXCH13 to EXCH19. However, I got error HCW8064 stating that the OAuth portion of my Hybrid configuration could not be performed. I ran a Test-oAuthConnectivity and it succeeded for both On-Premise and Cloud. I'm not sure what else to check. Below is part of the HCW log that might be related:

2023.11.07 16:03:16.170 *ERROR* 10203 [Client=UX, Page=Configuring, fn=RunWorkflow, Thread=13] 
                                      System.NotImplementedException: The method or operation is not implemented.
                                         at Microsoft.Online.CSE.Hybrid.Common.MSALAuthProvider.Result.Microsoft.Online.CSE.Hybrid.Common.Abstract.IAuthenticationResult.get_RefreshToken()
                                         at Microsoft.Online.CSE.Hybrid.Common.BaseAuthCredential.GetAuthenticationResultFromCache(String authority, String resource, String clientId)
                                         at Microsoft.Online.CSE.Hybrid.Common.BaseAuthCredential.AcquireToken(String authority, String resource, String clientId, Uri redirectUri, Boolean promptMode)
                                         at Microsoft.Online.CSE.Hybrid.Provider.AdminApi.AdminApiProvider.Connect()
                                         at Microsoft.Online.CSE.Hybrid.Host.Environment.CreateSession[T](ILogger logger, IPowerShellLogger psiLogger, ICredential credential, String powerShellHost)
                                         at Microsoft.Online.CSE.Hybrid.App.AppData.CreateTenantSession()
                                         at Microsoft.Online.CSE.Hybrid.App.AppData.RunWorkflow(ILogger logger, WorkflowType workflowType, IEngineUserInterface userInterface, Boolean postSessionData)
2023.11.07 16:03:29.855         10044 [Client=UX, Thread=1] Opening C:\Users\xxxxx\AppData\Roaming\Microsoft\Exchange Hybrid Configuration
2023.11.07 16:05:04.826 *ERROR* 10252 [Client=UX, Thread=1] 
                                      System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000.
                                      Parameter name: offset
                                         at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
                                         at System.DateTimeOffset..ctor(DateTime dateTime)
                                         at Microsoft.Online.CSE.Hybrid.App.ViewModel.Dialogs.SupportPackage.UpdatePackage()
2023.11.07 16:07:27.030 *ERROR* 10294 [Client=UX, Activity=Tenant Connection Validation, Thread=13] 
                                      System.NotImplementedException: The method or operation is not implemented.
                                         at Microsoft.Online.CSE.Hybrid.Common.MSALAuthProvider.Result.Microsoft.Online.CSE.Hybrid.Common.Abstract.IAuthenticationResult.get_RefreshToken()
                                         at Microsoft.Online.CSE.Hybrid.Common.BaseAuthCredential.GetAuthenticationResultFromCache(String authority, String resource, String clientId)
                                         at Microsoft.Online.CSE.Hybrid.Common.BaseAuthCredential.AcquireToken(String authority, String resource, String clientId, Uri redirectUri, Boolean promptMode)
                                         at Microsoft.Online.CSE.Hybrid.Provider.PowerShell.PowerShellProvider.ConnectionInfo.BuildTenantConnectionInfo(ILogger logger, String authenticationContextAuthorityUrl, String acquireTokenClientId, Uri connectionUri, String shellUri, ICredential credential, String& authorizationHeader, Boolean rpsOAuth, Uri acquireTokenRedirectUrl)
2023.11.07 16:07:27.031 *ERROR* 10085 [Client=UX, Activity=Tenant Connection Validation, Thread=13] The method or operation is not implemented.

Thanks for your help.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,182 questions
Exchange | Exchange Server | Management
Exchange | Hybrid management
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,231 Reputation points Microsoft External Staff
    2023-11-09T08:26:40.4733333+00:00

    @Louis CI Lo ,

    Welcome to our Q&A forum.

    Regarding the error HCW8064, please re-download 365 Hybrid Configuration Wizard to make sure you are using the latest version.

    Before manually configuring OAuth authentication, there are two points must be paid attention to:

    1. Make sure you are using the administrator account which is a member of Organization Management role group.
    2. Double-check and confirm that the domain used in AuthMetadataUrl is verified successfully and it's used as the primary SMTP domain for the cloud-based email accounts.

    Besides, I have found an tech article describes more steps about how to troubleshoot HCW:

    https://techcommunity.microsoft.com/t5/exchange-team-blog/modern-hcw-hybrid-agent-troubleshooting-like-a-pro/ba-p/1558725


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.