Hello,
I am currently testing the process of upgrading from AX 2012 CU9 to CU12. When I compile the application I do not get any errors, but when I do a full CIL compile I get the following error in the Dynamics.Ax.Application.dll.log file.
Error when loading the method. Type: DMFEntity, Method: defaultEntityForAccountsPayable
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.buildArgTypes(Int32 parmCount, Int32 optionalParmCount, Boolean isInstance)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.BuildMethod(TypeBuilder typeBuilder, XmlNode methodNode)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.LoadMethods(XmlNode classNode, TypeBuilder typeBuilder)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.GenerateXppModule()
The CIL generator found errors and could not save the new assembly.
Errors: 1
Warnings: 0
When I compile the DMFEntity I get the following macro does not exist.
Description Path Line Method/Property name Diagnostic ID
The #MarkupTolerance macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForAccountsPayable 151 defaultEntityForAccountsPayable Err:9994
The #CashDisc macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForAccountsReceivable 77 defaultEntityForAccountsReceivable Err:9994
The #BankDocumentFacilityType macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForCashAndBank 21 defaultEntityForCashAndBank Err:9994
The #LedgerBalanceControl macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForGeneralLedger 188 defaultEntityForGeneralLedger Err:9994
The #HcmTitle macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForHRM 204 defaultEntityForHRM Err:9994
The #InventModelGroup macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForInventoryAndWarehouse 69 defaultEntityForInventoryAndWarehouse Err:9994
The #OutlookSyncParameters macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForOrgAdministration 183 defaultEntityForOrgAdministration Err:9994
The #DestinationCode macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForProcurementAndSourcing 13 defaultEntityForProcurementAndSourcing Err:9994
The #PBAUserProfiles macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForProductInformation 207 defaultEntityForProductInformation Err:9994
The #JmgExternalTerminalTable macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForProductionControl 48 defaultEntityForProductionControl Err:9994
The #SMASalesPriceSubscription macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForProjMgtAndAccounting 152 defaultEntityForProjMgtAndAccounting Err:9994
The #UserGroupList macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForSystemAdministration 160 defaultEntityForSystemAdministration Err:9994
The #TrvLocations macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultEntityForTravelAndExpense 91 defaultEntityForTravelAndExpense Err:9994
The #CashDisc macro does not exist. \Data Dictionary\Tables\DMFEntity\Methods\defaultModule 26 defaultModule Err:9994
CIL generation: The given key was not present in the dictionary. \XppIL 1 XppIL Err:351
It seems a little strange that all these macros do not exist considering they are all coming from the cumulative update 12. I also tried to clear all the dll files from the XppIL folder and do the whole recompile process. I still got the same out put. Can someone tell me what I might be missing.
Thanks for all your help,
Ash