FIX: Ledger voucher entries are incorrect when you try to correct mistakes on the "Quantity adjustment" form in Microsoft Dynamics AX 2009

This article applies to Microsoft Dynamics AX 2009 for all regions.


Consider the following scenario:
  • You try to update the quantity on-hand of an item in Microsoft Dynamics AX 2009.
  • You click the On-hand button to open the on the "Onhand inventory" form.
  • You click the Quantity adjustment button and create a new line item that contains a quantity of 100 from one of your warehouses and then you click OK.
  • You press F5 to update the "Onhand inventory" form.
  • You click the Quantity adjustment button again and change the quantity in the existing line item from 100 to -1.
  • You create a new line item that contains a quantity of 1 from a different warehouse and then you click OK. You receive the following error message:

    101.00 cannot be picked because only 100.00 is/are available from the stock.

  • You close the error message and then correct the line that should have the quantity of 100. To do this, you change the Quantity value of the existing line from -1 to 99.
  • You click OK to post the adjustment and update the "On-hand" form.
  • You close the "On-hand Inventory" form and return to the "Item Details" form.
  • You view the inventory transactions and then click "Ledger / Financial voucher."

In this scenario, the voucher displays incorrect entries for Inventory profit and Inventory receipt.


Hotfix information

A supported hotfix is available from Microsoft. There is a "Hotfix download available" section at the top of this Knowledge Base article. If you are encountering an issue downloading, installing this hotfix, or have other technical support questions, contact your partner or, if enrolled in a support plan directly with Microsoft, you can contact technical support for Microsoft Dynamics and create a new support request. To do this, go to the following Microsoft website:You can also contact technical support for Microsoft Dynamics by telephone by using these links for country specific telephone numbers. To do this, go to one of the following Microsoft websites:

PartnersCustomersIn special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to any additional support questions and issues that do not qualify for the specific update in question.

Installation information

See How to install a Microsoft Dynamics AX hotfix for information about how to install this hotfix.


You must have Microsoft Dynamics AX 2009 Service Pack 1 installed to apply this hotfix.

Restart requirement

You must restart the Application Object Server (AOS) service after you apply this hotfix.

Objects that are affected

This hotfix affects the following object:

\Classes\Wmsonlinecountingserver.xpo, method: run()

Validation of the application hotfix installation

To validate the installation of the application hotfix, open the SysHotfixManifest class in the Application Object Tree (AOT). Then, verify that there is a method name that contains the Knowledge Base (KB) article number of the installed hotfix. Additionally, you can cross-check the affected objects by viewing the KBxxxxxx.txt file against the objects in the AOT. Therefore, you can make sure that the objects are changed correctly in the SYP layer or in the GLP layer.

Note KBxxxxxx.txt is a placeholder for the KB article number of the installed hotfix.
File information


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2793075 - Last Review: 17 Feb. 2017 - Revision: 2

Microsoft Dynamics AX 2009