Our support engineers have assembled the top recommended solutions for you.
Microsoft Dynamics AX 2012CRM Connector in Microsoft Dynamics AX 2012Financials Management in Microsoft Dynamics AX 2012Upgrading to Microsoft Dynamics AX 2012
Microsoft Dynamics AX 2009
Application Object Server (AOS)
Enterprise Portal and Role Centers
Inventory Costing in Microsoft Dynamics AX 2009
Invoice Settlements/Discounts/Reversals
SSRS and SSAS Integration
Workflow
Hello
When I do a CIL-Compile on my AX2012 I get the following error
Method staticlinkCount in Type QueryBuildDataSource was not found in the CIL that was generated from X++
How can that be? And more important....HOW CAN I RESOLVE THIS
You can see the details of this error message from ''Show last CIl generation log' option right to the 'incremental IL' option in development environment.
-Afsar
mafsarkhan.blogspot.com
Finished pass 1 at 27.10.2012 22:10:22
Finished pass 2 at 27.10.2012 22:12:32
Error 1. Class: SysQuery, Method: queryAddStaticCursorAsRangeAndValue, Exception: System.NotSupportedException: Line Number 33 - Method staticlinkCount in Type QueryBuildDataSource was not found in the CIL that was generated from X++. ---> System.ArgumentException: Method staticlinkCount in Type QueryBuildDataSource was not found in the CIL that was generated from X++.
at Microsoft.Dynamics.Ax.Xpp.ILGenerator.EvalID(XmlNode node)
at ILGenerator::EvalID(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.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 27.10.2012 22:16:19
The CIL generator found errors and could not save the new assembly.
Errors: 1
Warnings: 0
You can Compile Forward class SysQuery by right clivk on AOT\Classes\SysQuery -> Add-ins->Compile forward to fix this issue.
thx for the tipp but did not work. the error still exists
Did you fix it christian, i have the same issue after upgrading to CU4.
Hi, sorry no fix found yet. Still dealing with the problem.
If you will find a solution maybe you can inform me, as well as I will keep you informed if I find one
for now, i am generating incremental CIL and if it helps my issue
First of all, make sure your client is at the exact same version as your latest SYP axmodel (application) and finally the aos-service itself. All three components needs to be on same version, for the sake of sanity. :-)
Then make sure your local configuration is pointing correctly to the AOS you want to compile against.
Finally, open a command prompt, navigate to where the client is installed and to the "bin"-folder. From that location, run this command: ax32.exe -startupcmd=kernelcompileall
Let it compile until it is done. It can take up to several hours.
If it still fails, try delete the local auc cache file before you try again. It should be located under %appdata%\..\Local\
Just remove any auc-files and the local client cache is definitely gone.
Good luck!
Tommy Skaue | Dynamics AX Developer from Norway | http://yetanotherdynamicsaxblog.blogspot.no/ | www.axdata.no