Microsoft Knowledge Base Email Alertz

FIX: You cannot retrieve the latest inventory data by using Commerce Server APIs for the Inventory System in Commerce Server 2007

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 975086 - Last Review: August 2, 2010 - Revision: 2.0

FIX: You cannot retrieve the latest inventory data by using Commerce Server APIs for the Inventory System in Commerce Server 2007

Hotfix download is availableHotfix Download Available
View and request hotfix downloads

On This Page

SYMPTOMS

Consider the following scenario:
  • You have a computer that is running Microsoft Commerce Server 2007.
  • You enable caching in the Catalog System.

    Note You can enable caching by setting the CacheEnabled property on the CacheConfiguration object to True.
  • You retrieve inventory data by using the Commerce Server APIs for the inventory system.
In this scenario, you find that the inventory data is not the latest data.

For example, you use the InventoryCatalog.GetSku method to obtain an InventorySku object. The data in the InventorySku object differs from the data in the InventorySkus table. You use the InventorySku.Refresh method to update the object. However, the data is still not updated.

CAUSE

This problem occurs because the inventory data is part of the CatalogItem object. When you enable catalog caching in the Catalog System, the inventory data is cached as part of the CatalogItem object in the product catalog cache. You cannot update inventory data separately.

RESOLUTION

This hotfix changes the way inventory data is retrieved. When you call the inventory objects to obtain the inventory data, the data is retrieved directly from the inventory system database tables.

Hotfix information

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 this specific problem.

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, submit a request to 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 Web site: -
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
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.

Prerequisites

You must have Commerce Server 2007 Service Pack 2 (SP2) installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix. However, you must restart Internet Information Services (IIS) and the Commerce Server Catalog Import Host COM+ application after you apply this hotfix.

To restart IIS, at a command prompt, type IISRESET /RESTART, and then press ENTER.

Note This action stops and then restarts all IIS services that are running.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it 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.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.catalogserver.dll6.0.4109.23751,47227-Aug-200914:44x86
Microsoft.commerceserver.catalog.dll6.0.4109.23960,37627-Aug-200914:44x86

STATUS

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

MORE INFORMATION

This hotfix includes two DLL updates. Therefore, if you want to uninstall this hotfix, you must remove the following two entries by using the Add or Remove Programs item in Control Panel.
  • Microsoft Commerce Server 2007 Client Tools SP2 - KB975086CT
  • Microsoft Commerce Server 2007 Enterprise Edition SP2 - KB975086
For more information about how to develop applications by using the inventory system, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn.microsoft.com/en-us/library/ms944260.aspx (http://msdn.microsoft.com/en-us/library/ms944260.aspx)
For more information about caching in the Catalog System, visit the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/aa545675.aspx (http://msdn.microsoft.com/en-us/library/aa545675.aspx)
For more information about the InventoryCatalog.GetSku method, visit the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/ms977671.aspx (http://msdn.microsoft.com/en-us/library/ms977671.aspx)
For more information about the InventorySku class, visit the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/microsoft.commerceserver.inventory.inventorysku.aspx (http://msdn.microsoft.com/en-us/library/microsoft.commerceserver.inventory.inventorysku.aspx)
For more information about the CatalogItem class, visit the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/microsoft.commerceserver.catalog.catalogitem.aspx (http://msdn.microsoft.com/en-us/library/microsoft.commerceserver.catalog.catalogitem.aspx)
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 (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO
  • Microsoft Commerce Server 2007 Developer Edition
  • Microsoft Commerce Server 2007 Enterprise Edition
  • Microsoft Commerce Server 2007 Standard Edition
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe kbautohotfix KB975086
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate