FIX: Line Item ordering may not work correctly when you use the UpdatePurchaseOrderProperties method to partly update an order in Commerce Server 2009

When you use the UpdatePurchaseOrderProperties method in Microsoft Commerce Server 2009 to update only some line items in an order, Line Item ordering may be changed. Therefore, the components of Commerce Server that depend on Line Item ordering may not work correctly.

For example, shipments in Commerce Server will point to the line items in a shipment by using an index. The index is based on the sequence of the line items in an order form. When you update an order, the sequence of the line items may be changed so that the indexes on the shipments point to an incorrect line item.
The issue occurs because the LineItemOrdering column is updated when the line item is changed. However, the LineItemOrdering column should be set only when a line item is created and should not be updated when the line item is changed.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.


To apply this hotfix, you must have Commerce Server 2009 or Commerce Server 2009 Template Pack for SharePoint 2010 installed.

Restart requirement

You do not have to restart the computer after you apply this hotfix. However, you must restart Internet Information Services (IIS) after you apply this hotfix. To restart IIS, open a Command Prompt window, type the following command, and then press ENTER:
iisreset /restart
Note This option stops and then restarts all IIS services that are running.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File Information

The global version of this hotfix uses a Microsoft Windows Installer package to install the hotfix. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For Commerce Server 2009
File nameFile versionFile sizeDateTimePlatform
For Commerce Server 2009 Template Pack for SharePoint 2010
File nameFile versionFile sizeDateTimePlatform
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about the UpdatePurchaseOrderProperties method, visit the following Microsoft Developer Network (MSDN) website:For a description of the Line Items table, visit the following MSDN website: 

Article ID: 2492805 - Last Review: 02/23/2011 17:35:00 - Revision: 1.0

  • Microsoft Commerce Server 2009 Enterprise
  • Microsoft Commerce Server 2009 Standard
  • kbautohotfix kbqfe kbhotfixserver kbfix KB2492805