Friday, 26 August 2016

get current user name

info(strFmt('%1: %2', "Current user: ", xUserInfo::find(false,curUserId()).name));

Monday, 6 June 2016

Error Unable to log on to Microsoft Dynamic AX

the way i solve this problem are

1. make sure filled in the business connector proxy in System administration/Setup/System/System Service Account


2. check your AX configuration. 

both local client and business connector must have connected correct configuration with correct port. 
and also try to refresh WCF services for both.



Error _reportName cannot be null or empty.

if you encounter this kind of error


in this specific case it looks like an earlier full compile did not finish.

i would suggest you to first compile the class mentioned in the error message and see if it solves the problem.


  1. go to AOS.
  2. find classname mentioned in the error message.
  3. compile it. 

Thursday, 19 November 2015

How to full build in ax 2012


go to bin folder in ax folder
type axbuild.exe xppcompileall /aos=01 /workers=5 in command prompt
you'll get screens like below image.
let in run until you get below image. sometimes you might get blank screen with only "***". just hold it. it will run itself.


1. open command prompt (run as admin)

2. go to bin folder in ax folder in the command prompt.

3. type axbuild.exe xppcompileall /aos=01 /workers=5 in command prompt

4. you'll get screens like below



5. let in run until you get below image. sometimes you might get blank screen with only "***". just hold it. it will run itself.


Sunday, 15 November 2015

Allow RDC into computer.

Go to

Control Panel > System and Security > System

at remote tab, allow remote connection to this computer.


Tuesday, 10 November 2015

index at queryrun

it is possible to use index hint in query object. 

try :

queryBuildDataSource.addSortIndex(indexNum(MyTable, MyIndex));queryBuildDataSource.indexIsHint(true);


people use index hint in query is because to improve the performance we fetch the data by using Query object and in this query i can put Order by or group by options for sorting/grouping.

in the same way i can use index hint for particular datasource.