Tuesday, 2 February 2016

CIL generation: Value cannot be null. Parameter name: parameterTypes


CIL generation: Value cannot be null.  Parameter name: parameterTypes

Dynamics AX 2012

1) Compile application and see that there is no error. If any resolve first.
            Compile Application using axbuild

2) Stop AOS

3) Delete all from the source:

C:\Program Files\Microsoft DynamicsAX\60\Server\MicrosoftDynamicsAX\bin\XppIL directory

4) Start the AOS.

5) Perform a Full CIL.


6) Perform a Incremental CIL




This helped you..!! Then hit the ads on the page..:)


Tuesday, 19 January 2016

Get current user name x++ AX 2012

when it is require to show current user name related with worker try below code in AX 2012.

static void getUserName(Args _args)
{
    info(strFmt('%1',curUserId()));
    
    info(strFmt('%1',HcmWorker::userId2Worker(curUserId())));
    
    info(HcmWorker::find(HcmWorker::userId2Worker(curUserId())).name());
}


This helped you..!! Then comment below..:)