Monday, January 5, 2015

Ax 2012 R3 - CU8 Installation Document


Hello Guys,

Here i'm sharing document for how to install CU-8 in Ax 2012 R3

Important Notes:
Development work (ex. Enterprise Portal, SSRS) done in Visual Studio will now be with Microsoft Visual Studio 2013Note when going to CU8
      • Report Viewer 2012 runtime component is required
      • Visual Studio Tools (for 2010) will have to be uninstalled via AX setup.exe > Install               Microsoft Dynamics AX components > Remove components > under Developer tools           mark Visual Studio Tools
      • Install Visual Studio 2013 (Professional or higher)
      • When going through CU8 installer note the Visual Studio 2013 Dev Tools selection

click below link to download Ax 2012 R3 - CU 8 Installation Document:




Kernel Version After CU-8 Installation 
                      
                      Application Version: 6.3.1000.473



@Rahul Talasila 


AX2012 AXUTIL commands to Import,Export,Delete Models

Hello Guys..!

Here i'm sharing Axutil command to import, export, delete models.

// creating the Model in the Layer
AxUtil create /model:"TestModel" /Layer:CUS

// exporting the model to file
AxUtil export /model:"TestModel" /file:TestModel.axmodel

// importing the model from file
AxUtil import /file:TestModel.axmodel

// delete the model
AxUtil delete /model:"TestModel"

//delete the layer
AxUtil delete /layer:ISV

// if you have multiple instances running
//delete the layer from the database and AXserver.
Axutil delete /layer:ISV /db:<database> /s:<server>

Note: click the link for how to use axutil

http://talasilarahuldaxing.blogspot.ae/2015/01/import-model-by-using-axutil-in-ax-2012.html


@Rahul Talasila

Import a Model By Using Axutil in Ax 2012

Hello Guys..!

Here i'm going show how to import  a model by using axutil Ax 2012

Use of Axutil :

-> We use Axutil to import, export,delete Ax Models.


How to Use :

-> open command prompt as a administrator 
-> Paste below code and press enter 
       cd Program Files\Microsoft Dynamics AX\60\ManagementUtilities

-> specify the model file location path in the command prompt  and press enter

Example :  

 axutil import /file:"c:\Program Files (x86)\Microsoft\Security Development Tool\SecurityDevelopmentTool.axmodel" 

->After that start AOS and do full application compilation and db synchronization.

Note :

-> When you are importing model by default this model will import into "MicrosoftDynamicsAx_Model"

-> If you have a specific database then use the below format to specify database

axutil import /file:"c:\Program Files (x86)\Microsoft\Security Development Tool\SecurityDevelopmentTool.axmodel" /db:"MicrosoftDynamicsAX_159_model"

-> Use these commands to specify specific database, server     db:<database> /s:<server>


@Rahul Talasila

Monday, December 22, 2014

Symmetry error in Ax 2012 R3 CU8

Hello Guys...!

Issue: Symmetry  error in PayrollCalculatePayStatementBenefits class in Ax 2012 R3 CU8



Solution :
Go to AOT-> References-> Add Reference



Browse ste-net.dll file from  C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin
 
Press Ok.

 
 
 
Again do full compilation
That's it....

 
@Rahul Talasila



Sunday, December 21, 2014

How to See Log Files Paths In AX 2012

Hello Guys..

Here i'm sharing information about how to see log file paths in ax 2012

Full Compilation Log :

This is when you compile the entire application and it is located in
%USERPROFILE%\Microsoft\Dynamics Ax\Log\ by default - this is the path found in the configuration of the client. The log name is AxCompileAll.html

CIL Compilation Log :

 This is when you do Generate Full CIL and this can be found in the Server folder of you AX installation similar to this
 C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL and it is called Dynamics.Ax.Application.dll.log



@Rahul Talasila

Saturday, December 20, 2014

How To Export Data Into Excel - Ax 2012

Hello Guys,

In this post i'm showing how to export data into excel.

In this example i'm exporting all number sequence list  in current legal entity .

Example : vend id,custid,paymentjournalnum

Step1 :Copy and Paste the below code in AOT-> Job
Step2: Run the Job
step3: Go to "C" drive and then find the excel sheet Named as "Numseqlist"

static void Numberseq_List(Args _args)
{
   SysExcelApplication  xlsApplication;
   SysExcelWorkBooks    xlsWorkBookCollection;
   SysExcelWorkBook     xlsWorkBook;
   SysExcelWorkSheets   xlsWorkSheetCollection;
   SysExcelWorkSheet    xlsWorkSheet;
   SysExcelRange        xlsRange;
    NumberSequenceReference NumberSequenceReference;
    NumberSequenceTable NumberSequenceTable;
    NumberSequenceDatatype NumberSequenceDatatype;
   int                  row = 1;
   str                  fileName;
    CompanyInfo companyInfo;
   ;
   //Filename
   fileName = "C:\\Numseqlist.xlsx";
   //Initialize Excel instance
   xlsApplication           = SysExcelApplication::construct();
   //Open Excel document
   //xlsApplication.visible(true);
   //Create Excel WorkBook and WorkSheet
   xlsWorkBookCollection    = xlsApplication.workbooks();
   xlsWorkBook              = xlsWorkBookCollection.add();
   xlsWorkSheetCollection   = xlsWorkBook.worksheets();
   xlsWorkSheet             = xlsWorkSheetCollection.itemFromNum(1);
   //Excel columns captions
   xlsWorkSheet.cells().item(row,1).value("NumberSeqId");
   xlsWorkSheet.cells().item(row,2).value("Format");
   xlsWorkSheet.cells().item(row,3).value("Name");
   row++;
   //Fill Excel with NumberseqId,Format,Name fields (only 10000 records)
    companyInfo.RecId = CompanyInfo::findDataArea(curext(),false).RecId;
   while select NumberSequenceReference where NumberSequenceReference.numbersequencescope == companyInfo.RecId
    {
        select numbersequence from NumberSequenceTable where NumberSequenceTable.recid == NumberSequenceReference .numbersequenceId;
        select firstonly1  NumberSequenceDatatype where NumberSequenceDatatype.RecId == NumberSequenceReference.NumberSequenceDatatype;
       if(row == 10000)
        break;
       xlsWorkSheet.cells().item(row,1).value(NumberSequenceTable.NumberSequence);
        xlsWorkSheet.cells().item(row,2).value(NumberSequenceTable.Format);
       xlsWorkSheet.cells().item(row,3).value(NumberSequenceDatatype.referenceLabelForDisplay());
       row++;
   }
   //Check whether the document already exists
   if(WinApi::fileExists(fileName))
      WinApi::deleteFile(fileName);
   //Save Excel document
   xlsWorkbook.saveAs(fileName);
   //Open Excel document
   xlsApplication.visible(true);
   //Close Excel
   //xlsApplication.quit();
   //xlsApplication.finalize();
}


@Rahul Talasila

Wednesday, December 17, 2014

Missing Label File Problems - AX 2012

Hello Guys,

Problem : 

In some situation could happen that after installing cumulative updates there are missing some SYP labels.



Solution : 

1. Stop AOS
2. Delete ALD and AUC files from Microsoft Dynamics AX\60\Server\<instance>\bin\Application\Appl\Standard
// Note : In search type.ald, .alc and delete files

3. Start AOS again.

That's It..

Issue : 
Some times we face the same labels issue after upgrading sql server
Example: upgrading from Sql 2012 to Sql 2014

Solution : 
http://technet.microsoft.com/EN-US/library/hh389762.aspx


@Rahul Talasila

What is the primary purpose of using a Solution in Microsoft Power Platform & ALM?

As organizations embrace low-code development with Microsoft Power Platform , it becomes essential to manage and govern apps, flows, and dat...