Search This Blog

Wednesday, 18 March 2015

ERROR:Updating hybrid configuration failed with error 'Subtask ValidateConfiguration execution failed: Configure Mail Flow

Scenario
You need to add a new domain to the Hybrid Configuration Wizard. You complete the following correct steps.

  • Add Domain to O365 and Verify
  • Add Domain to On-Premise Exchange as Authoritative
  • Run the HCW and Complete Domain Verification etc...
  • At the end the HCW Completes with error:

ERROR:Updating hybrid configuration failed with error 'Subtask ValidateConfiguration execution failed: Configure Mail Flow

A Closer look at the HCW logs may include an error something like:

ERROR:System.Management.Automation.RemoteException: This operation is not required. Organization is already enabled for customization.

Resolution
In my case, there was no rhyme or reason for the HCW to error. So after trawling many Office 365 Blogs and community forums, also having a go at removing connectors as per one MS KB  made no difference (Which is just bad advice anway in my opinion,) here just for ref:

 The following simple steps worked for me.

 1. Connect to your Exchange On-Line via Power shell
     (So a key point here is that you need internet access to Office 365 from the EMC/EMS)

    •  $UserCredential = Get-Credential
    • $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
    • Import-PSSession $Session 
2. Run the following Command against one of your SMTP Domains (Ensure it completes ok)
    • Get-FederationInformation -domain mysmtpdomain.com

3. Re-Run HCW. 
                               
                             

All good !!!!  Bizarre, but it works. Hope this helps

9 comments:

  1. Worked for me thanks!

    ReplyDelete
  2. Dude.. after such a headache.. it worked!

    ReplyDelete
  3. Worked for me too!!!

    ReplyDelete
  4. Worked for me too!!! Thanks!

    ReplyDelete
  5. Wow, i have been running the Wizard N number of times, looking at different settings each time, performing various changes.

    This one beat me!!! Microsoft huh..!!!

    Cheers Mark...

    ReplyDelete
  6. Worked for me too; non-obvious but effective! Thanks.

    ReplyDelete
  7. As weard as it looks, it worked for me too!
    Thanks a ot!

    ReplyDelete
  8. Worked for me too - no idea why it does. Thanks for helping :)

    Cheers,
    Pete

    ReplyDelete
  9. You are a genius!!!!

    ReplyDelete