Thursday, May 22, 2014

AX 2012 - Compile and CIL Generation errors

Someone may come across the following compilation errrors in classes while compiling the application;

\Classes\BIGenerator\classDeclaration
\Classes\DMFBIConfigurationEntityClass\classDeclaration
\Classes\SysStartupCmdGenerateSsasProject\buildProject
\Classes\BIAnalysisServicesProjectController\classDeclaration

When I dig into these errors it was related to Microsoft.Dynamics.AX.Framework.Analytics.DLL that is installed with Reporting Extensions.

Fix:
Install the SQL 2008 R2 Analysis Managment Objects (my running version of SQL) on the same machine as the AX Client (in my scenario, the AOS server) . Then recompile!