Hi Guys,
We encountered an odd error when doing incremental or full CIL compile which results to the following:
Finished pass 1 at 11/29/2013 9:05:31 AM
Finished pass 2 at 11/29/2013 9:05:31 AM
Error 1. Class: PurchFormletterParmDataInvoice, Method: insertRecordLists, Exception: System.NotSupportedException: Line Number 61 - Object reference not set to an instance of an object. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.implicitConstructorCallCast(Type[] parameters, ConstructorInfo ci, Int32 numParams)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.New(XmlNode node)
at ILGenerator::New(ILGenerator , XmlNode )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelperGenerator.CallPCode(ILGenerator generator, String PCode, XmlNode node)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.processBytecode(XmlNode childNode)
— End of inner exception stack trace —
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.processBytecode(XmlNode childNode)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.processBytecodes(TypeBuilder typeBuilder, XmlNode node)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.GenerateIL(TypeBuilder typeBuilder, XmlNode node)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.TraversePCode(XmlNode node)
at Microsoft.Dynamics.Ax.Xpp.PCodeTraverser.TraverseMethod(XmlNode methodNode)
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.GenerateXppModule()
Finished pass 3 at 11/29/2013 9:05:33 AM
The CIL generator found errors and could not save the new assembly.
Errors: 1
Warnings: 0
We have not made any change on this portion of the code and the error points to a call to a method declared as server static. We don’t know how else can a static method be null when it’s clearly static.
Any help would be appreciated!
Cheers,