Saturday, February 14, 2015

No running server is assigned to the Upgrade batch group: Data Update - Ax 2012

Hello Guys...!

Issue :

No running server is assigned to the Upgrade batch group: Data Update


Reason : Batch Server is not assigned to the AOS

Solution :   Go to system Administrator ->setup->system->server configuration and select the AOS and enable "Is Batch Server"



@Rahul Talasila

Friday, February 13, 2015

Insufficient inventory transactions with status received Error - Ax 2012

Hello Guys..

Issue : 
while doing po-invoice some times we get error "Insufficient inventory transactions with status received"


Reason: 


If we cancel product receipt and later we are doing invoice then we will face this issue. 


Solution : 


Microsoft has released hot fix for this(DynamicsAX2012R2-KB2957406). Click on the below link and install the hot fix to solve this issue.




Note : This will work for new Purchase orders not for existing purchase orders

Sunday, February 1, 2015

Multiple PDC(Post Dated Cheques) Settlement In Ax 2012

Hello guys,

Problem :

In Ax 2012 R2 we don't have functionality to post multiple PDC's at one go

Solution :

We need a simple customization to enable this functionality

Steps :

-> Go to AOT->Forms-> VendPostDatedChecks->Designs->ActionPaneTab->SettleClearingTransaction

-> open properties of "SettleClearingTransaction" and change property "Multiselect" to "Yes"
-> In form design Go to ListPageGrid properties and change "Autodeclaration" to "Yes"
-> copy and paste the below code in Click method in "SettleClearingTransaction" button.


void clicked()
{
    //NS - Added by Rahul for multiselect posting option
    boolean multiSelected;
    CustVendPDCRegister _custVendPDCRegister,custVendPDCloc;
    super();
    if(CustVendPDC_ds.anyMarked())
    {
        _custVendPDCRegister = CustVendPDC_ds.getFirst(true);
        while(_custVendPDCRegister)
        {
            custVendPDCloc =            CustVendPDCRegister::findByReference(_custVendPDCRegister.LedgerJournalTrans);
            if(custVendPDCloc.PDCStatus == PostDatedCheckStatus::Posted)
            {
                CustVendPDCManager::settleClearingTransactions(custVendPDCloc);
                multiSelected = true;
            }
            _custVendPDCRegister = CustVendPDC_ds.getNext();
        }

    }
    if (multiSelected)
    {
        CustVendPDC_ds.research();
        CustVendPDC_ds.first();
        CustVendPDC_ds.mark(0);
        ListPageGrid.setFocus();
    }
    else
    {
        CustVendPDC_ds.reread();
        CustVendPDC_ds.active();
    }
        //NE - Added by Rahul for multiselect posting option
}


@Rahul Talasila






Function DimensionValidation::validateByTree has been incorrectly called In Axapta 2012

Error : Function DimensionValidation::validateByTree has been incorrectly called.

Reason :
This error is coming because we are passing the account and offset account in wrong manner to LedgerJournalTrans . The field OffsetLedgerDimension and Ledger Dimension are of type :
DimensionDynamicAccount , so before passing the Account to these field , we need to convert the account to correct type .


 How to do it:
For non ledger account(Bank, customer ....) , we do have the API :
DimensionStorage::getDynamicAccount(A/cNo ,LedgerJournalACType::Bank);

we need to pass record as :

LedgerJournalTrans .LedgerDimension  = DimensionStorage::getDynamicAccount(Hedging_table.AccountID,LedgerJournalACType::Bank);


But what to do with Ledger Account , you still can not pass these account directly as well .

Well there is one more API which can help us :

LedgerJournalTrans .getLedgerDimensionForLedgerType(Ledger A/c,jourTrans.Company); 

we need to pass record as :

LedgerJournalTrans .LedgerDimension  =  
LedgerJournalTrans .getLedgerDimensionForLedgerType(Ledger A/c,jourTrans.Company);


@Rahul Talasila

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

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...