PRB: CreateProduct Method Fails on Custom Catalogs After You Install Commerce Server 2000 SP1 (311834)
The information in this article applies to:
- Microsoft Commerce Server 2000
This article was previously published under Q311834 SYMPTOMS
If you use the CreateProduct method to add an item to a custom catalog, Microsoft SQL Server returns the following error message:
Cannot insert the value NULL into column 'LastModified', table 'somecatalog_commerce.dbo.bc 1_CatalogProducts'; column does not allow nulls. INSERT fails.
This problem occurs after you install Commerce Server 2000 Service Pack 1 (SP1).
CAUSE
Commerce Server 2000 SP1 changes the schema for a custom catalog by adding a LastModified column that requires a value. In standard catalogs, the default value is set to the getdate function. The getdate function enters the current date and time. Because you should not enter products manually in custom catalogs, this same change is not made in Commerce Server 2000 SP1. Therefore, the above-mentioned error message occurs after you install Commerce Server 2000 SP1.
STATUSThis behavior is by design.
The Commerce Server documentation is very clear on this issue. You cannot add new categories and products to a custom catalog. In addition, you cannot remove new categories and products from a custom catalog.
Modification Type: | Major | Last Reviewed: | 10/21/2002 |
---|
Keywords: | kbprb KB311834 |
---|
|