AX 2012: Clear the cache

In this post I would like to share the job. The purpose of this job is to clear Local Cache. Every time when I see doubtful behavior, I run this job to make sure that AX is not misbehave. static void RefreshLocalCache(Args _args) { xSession::removeAOC(); SysTreeNode::refreshAll(); SysFlushDictionary::main(null); SysFlushAOD::main(null); SysFlushData::main(null); SysBPCheckAIFDataObject::flushCache(true); SysFlushReportServer::main(null); SysFlushSystemSequence::main(null); xSession::updateAOC(); info("ok"); }

Advertisements

Microsoft Dynamics AX integration with UPS Worldship. Part2 – Export and import file formats

The second difficult part during the integration implementation is to understand what file format should be send to UPS from ERP system and what file format should be received from UPS, that will be imported with the tracking numbers into ERP system . In this post, I will provide you with the UPS file formats … Continue reading Microsoft Dynamics AX integration with UPS Worldship. Part2 – Export and import file formats

AX 2012 solved issue: You must set up periods for the fixed asset calendar ####.

You might experience this issue while you are migrating fixed assets. In general, steps for the migration are the next: Import fixed assets master data Import Acquisition transactions (e.g. through General journal) Import Depreciation transactions (e.g. through General journal) Posting Acquisition transactions Posting Depreciation transaction At the time of posting you can see an error: You … Continue reading AX 2012 solved issue: You must set up periods for the fixed asset calendar ####.

AX 2012 solved issue: The month you have selected is not in sequence. The quarter you have selected is not in sequence.

The common issue when you create the fiscal year, all periods are on the same state: Month = One Quarter = Quarter 1 Once you try to change either Month or Quarter, you might get an error message: The month you have selected is not in sequence. The quarter you have selected is not in sequence. … Continue reading AX 2012 solved issue: The month you have selected is not in sequence. The quarter you have selected is not in sequence.

Microsoft Dynamics AX integration with UPS Worldship. Part1 – Data import options

Recently, I have faced with the requirement to integrate Microsoft Dynamics AX 2012 R2 with UPS WorldShip. The most difficult part is to understand what kind of connections UPS WorldShip supports. UPS Worldship has several options for data import: a)      Keyboard Import (manual): A source file is needed. The best is a CSV file. An ODBC session … Continue reading Microsoft Dynamics AX integration with UPS Worldship. Part1 – Data import options

AX 2012 Trade allowance functionality: Rebates

In this topic I would like to go thought the rebate processing. You can apply the presented flow to process special discounts that are paid to a customer. Discount conditions and terms are defined in the Trade allowance agreement (in essence, rebate agreement). First of all, you will define the validity period of an agreement … Continue reading AX 2012 Trade allowance functionality: Rebates

AX 2012 DIEF solved issue: Selected file is unicode

Importing data into AX 2012 using DIEF at the first time inevitably leads to have many issues. One of the difficulty that I have faced it was encoding of the file that I was importing. I used Unicode encoding for csv file, and I ended up having the following issue After sorting out the issue, … Continue reading AX 2012 DIEF solved issue: Selected file is unicode