Announcements
No record found.
Hi ,
In Dixif i have configured a processing group to use directory for importing files into Ax, as it is directory instead of file, i was able to setup processing, completed & error directory for this import.
Also i set up reoccurence of this import batch job . Upon checking batch job history i notice that it always errors out with below error message.Can anyone help me with this error .
Hi Mav,
Can you provide more information which entity you are using and what data you have in the source file(s)?
Compiling CIL may be worth a try.
It seems to be about AX 2012, therefore I changed the version tag to "Microsoft Dynamics AX 2012".
Thanks for your responses, got this error in the log file, pls suggest a fix.
Finished pass 1 at 8/19/2020 1:15:20 PMError when loading the method. Type: DMFEntity, Method: defaultEntityExSystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() 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()Error when loading the method. Type: DMFDefinitionGroupEntity, Method: modifiedFieldSystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() 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: 2Warnings: 0
Thanks
Mav
Did you do a full CIL or an incremental CIL?
Full CIL
Please follow the following steps -
1. Log into the AOS server. Stop any other AOS services if you have multiple AOS servers.
2. Go to C:\Program Files\Microsoft Dynamics AX\60\Server\<instance name>\bin.
3. Rename the XPPIL folder to XPPIL_old. Create a new folder and name it XPPIL.
4. Do a full build from command line. You can refer to this link - docs.microsoft.com/.../axbuild-exe-for-parallel-compile-on-aos-of-x-to-p-code. Please ensure there are no errors in compilation.
5. Start the AOS service.
6. Do a full CIL.
7. Start services on other AOS servers (if any).
Maybe you didn't have compiled X++ either. Try compiling the whole application (X++) and then generating CIL.
Resolved by doing full build & then checking the log file which had details of objects which were causing error.
Fixed error on those objects & then i was able to get successful build.
Thanks to this link. & post by Deepak Agarwal
Good! Next time, making sure that your application compiles should be one of your first step.
Now please mark the reply (or replies) that contains resolution of the problem (by using "Did this answer your question? > Yes" by the reply).
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 658
André Arnaud de Cal... 495 Super User 2026 Season 1
Syed Haris Shah 315 Super User 2026 Season 1