Exchange Update / Install Error: The Error Code Is 8224

KB ID 0001451

Problem

I saw this error while attempting to install an update on Exchange 2010, but it can be seen on all flavours of Exchange. This is the ‘gist’ of the error;

[box]

Organization Preparation
Failed

Error:
The following error was generated when "$error.Clear(); 
	install-ExchangeSchema -LdapFileName ($roleInstallPath + "Setup\Data\"+$RoleSchemaPrefix + "schema0.ldf")

" was run: "There was an error while running 'ldifde.exe' to import the schema file 'C:\Windows\Temp\ExchangeSetup\Setup\Data\PostExchange2003_schema0.ldf'. The error code is: 8224. More details can be found in the error file: 'C:\Users\{Username}\AppData\Local\Temp\ldif.err'".

There was an error while running 'ldifde.exe' to import the schema file 'C:\Windows\Temp\ExchangeSetup\Setup\Data\PostExchange2003_schema0.ldf'. The error code is: 8224. More details can be found in the error file: 'C:\Users\{Username}\AppData\Local\Temp\ldif.err'
Click here for help... http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.3.123.3&e=ms.exch.err.Ex88D115&l=0&cl=cp

[/box]

Solution

This was an easy one to sort out, on one of your domain controllers open “Active Directory Sites and Services”, expand all the sites and look at the server names. In my case there was an old DC in the list (these are usually easy to spot as you cant ‘expand’ them), i.e.theres no NTDS settings below them.

Simply right click the offending server and delete it, then either force domain replication, or wait a while.

Related Articles, References, Credits, or External Links

NA

Exchange 2010 Install Error – There was an error while running ‘ldifde.exe’

KB ID 0000442

Problem

While trying to install Exchange 2010, the process fails with the following error.

[box]

Organization Preparation
Failed
Error:
The following error was generated when "$error.Clear();
install-ExchangeSchema -LdapFileName ($roleInstallPath + "SetupData"+$RoleSchemaPrefix 
+ "schema0.ldf")
" was run: "There was an error while running 'ldifde.exe' to import the schema file 'C:WindowsTempExchangeSetupSetupDataPostWindows2003_schema0.ldf'. The error code is: 
8224. More details can be found in the error file: 'C:Usersadministrator.{your-domain}
AppDataLocalTemp2ldif.err'".
There was an error while running 'ldifde.exe' to import the schema file 'C:WindowsTempExchangeSetupSetupDataPostWindows2003_schema0.ldf'. The error code is: 
8224. More details can be found in the error file: 'C:Usersadministrator.{your-domain}
AppDataLocalTemp2ldif.err'

[/box]

Solution

1. The error is happening at the “Organization Preparation” stage, so let’s go ‘old school’ and do that manually.

2. Locate the server on your network that is the schema master (Locate FSMO Servers).

3. Put the Exchange 2010 DVD in the schema master (Or share it over the network and connect to it from the schema master server).

4. Drop to command line and change to the DVD Drive/Directory with the Exchange 2010 setup files in it.

5. ONLY do this if you have Exchange 2003 already! Run the following command, (If no Exchange 2003 present, skip to the next step).

[box] Setup /PrepareLegacyExchangePermissions [/box]

6. Run the following command:

[box] Setup /PrepareSchema [/box]

7. Run the following command:

[box] Setup /PrepareAD [/box]

Note: At this point it may fail, and say it requires an organization name, (it will do this if it finds no existing container in Active Directory).

Error Exchange organization name is required for this mode.  To specify an organization name, use the /organizationName parameter. 

If that is the case, then run the following command:

[box] Setup /PrepareAD /OrganizationName:”Your required org name” [/box]

8. Now try and install Exchange 2010, and it should progress without the original error.

 

Related Articles, References, Credits, or External Links

NA