Identity and Access Management

Microsoft Identity Manager Sync Server HResult 0x80040E14 Error

Spoiler / TL DR; The Microsoft Identity Manager Sync Server HResult 0x80040E14 Error is associated with lack of available resources in your Microsoft Identity Manager environment.

Sizing servers for a Microsoft Identity Manager implementation gets easier the more you do it. If it is your first time, start with the Capacity Planning Guide. If you have a large implementation you will want the appropriate Topology. Separation of services definitely helps. But back to the HResult 0x80040E14 Error.

The Error and Problem

Whilst performing a Sync to a connected system you may receive (like I did) the following Synchronization Service Manager Error: Exception from HRESULT: 0x80040E14.

Looking into the Application Event Log there are a bunch of SQL Server errors such as ‘insufficient system memory in resource pool‘.

Looking in the Forefront Identity Manager Event Log we can see that the MIM is having difficulties talking to SQL. No process is on the other end of the pipe.

And then the definitive error that there are connection issues to the MIM Service Database on the SQL Server. Failure to connect to database ‘FIMService’.

Background: in my development environment SQL Server is on the same host as the MIM Sync and MIM Service. Looking at resource usage I can see that the MIM Sync process is using almost 12GB of RAM and the Windows Server itself is at 97% memory utilisation. Yeah that would restrict other services having available memory. Out of memory due to a resource intensive MIM Sync Service.

The Solution

The solution for me was two-fold;

  • increase the resources (RAM) on the Server
  • optimise the PowerShell Management Agent Import process (on a particular MA) to release memory when it has paged a page of results from the Management Agent through to the Sync Engine.

Adding this to my troubleshooting section on my Microsoft Identity Manager page to make it quick to find next time without having to dig down to the root cause.

Darren Robinson

Bespoke learnings from a Microsoft Identity and Access Management Architect using lots of Microsoft Identity Manager, Azure Active Directory, PowerShell, SailPoint IdentityNow and Lithnet products and services.

Recent Posts

Visualising your IP Address using PowerShell and AI

A few weeks back the Microsoft AI Tour was in Sydney Australia. There was a…

2 months ago

Where the heck is the PowerShell Module loading from?

If you're anything like me you always have PowerShell open, and often both PowerShell and…

5 months ago

Express Verified ID Setup

Decentralised Identity is a technology I'm passionate about and have written many posts and tools…

6 months ago

Orchestrating 1Password with PowerShell

Over two years ago I authored a PowerShell Module that enabled the automation of 1Password.…

9 months ago

Entra ID Tenant ID & Custom Domains PowerShell Module

Buried in my PowerShell Snippets Vol 4 post from 2021 is the PowerShell script and…

9 months ago

Windows Subsystem for Linux instance has terminated

Short post on how to recovery from "The Windows Subsystem for Linux instance has terminated"…

10 months ago

This website uses cookies.