Microsoft Dynamics AX 2012 offers clients versatility and advanced capabilities to utilize various units of measure (UOM) for different business areas and functions. This is vital, because AX 2012 users often wish to inventory material in one UOM, while at the same time, purchasing or selling the same material under a different UOM.
However, AX 2012 users beware—there are some dangerous gaffes you may encounter with UOM conversions.
When setting up unit conversions, users may be inclined to setup the conversion so that both directions are identified in the conversion table.
An example of this might be that the user desires to store product number 8002 with an inventory UOM of "SqFt," while also using a sell UOM of "ea." In order to support this practice, the user must define the conversion between SqFt and ea for the item.
AX only requires that a conversion exist in one direction. In other words, the user can define the conversion from SqFt to ea OR ea to SqFt.
Acceptable configuration of this conversion assuming 160 SqFt per 1 ea:
Figure 1: (Click to Enlarge) Figure 2: (Click to Enlarge)AX is capable of converting from SqFt to ea, as well as from ea to SqFt, based on only having the conversion configured in a single direction (as previously noted). However, the system will not prevent the user from defining the conversion in both directions.
The problem with setting up the conversion in both directions is more than just the redundancy of the input—the user opens up the risk that the conversions won't be consistent. If the conversions are inconsistent, it will affect that way AX rounds in that AX will first look for the directly applicable conversion, before then going to the inverse conversion.
An example of the problem, using similar data from above, would be the following:
This example shows that the conversion has been defined as 162 SqFt = 1 ea in the first record, but 1 SqFt = 0.00625 ea in the second record. A closer look reveals that the second record actually correlates to 160 SqFt = 1 ea. Because various transactions in the system may convert from one direction or the other, having this inconsistency will inevitably lead to transactional integrity and rounding issues.
SOLUTION #1: Establish a business practice to configure and maintain unit conversions in a single direction, and run some basic reporting analysis to verify the conversions are setup accordingly. This will avoid the problem of mismatched conversions and the downstream ramification of transactional errors associated with such problems.
Another problem is the need to adjust or modify unit conversions after the original configuration is in place. There are various impetuses for such changes: conversion factor changes based on chemistry or lab results; a business process change to extend decimal precision; or even the revelation that the initial conversion was established incorrectly.
Nonetheless, changes to unit conversions after transactions exist in AX are extremely dangerous and should be managed with caution and due diligence.
The following is an illustration of how a unit conversion change can impact your ability to successfully execute transactions in AX.
Scenario:
Sequence of events:
The problem above is exacerbated as the quantity or conversion scale increase, but this is just a representative example. Many other scenarios will produce similar results, and in some cases, users may actually be unable to process the transaction due to rounding errors and discrepancies between the old and new conversion results.
SOLUTION #2: The only way to properly protect against the pitfalls of unit conversion changes is to close all open transactions for an item (or items) involved in the conversion prior to making the conversion change. In many cases this may mean deleting or canceling open order lines, adjusting the conversion, and then recreating the deleted/cancelled order lines.