Commerce Server General - Commerce Server - Importing a Virtual Catalog error message.

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2004 > Commerce Server - Importing a Virtual Catalog error message.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Commerce Server - Importing a Virtual Catalog error message.
Chris

2004-09-22, 9:47 pm

Hi everyone,

We have been having trouble with the following operation: We have a
Virtual Catalog which we are trying to copy from a dev machine to
production in an XML file (using import/export). When we attempt to
import the file we created on dev in production, we get the following
error message:

Commerce Server: The ProductID or VariantID property for the Catalog
'MYCATALOG' does not match the current ProductID or VariantID
property.When importing a catalog in the update mode the ProductID or
VariantID property should match the existing ProductID or VariantID
properties

We also have a separate staging environment where this error occurs.
The odd thing is, if I export an XML file from one database and then
import it back into the same database, this error still occurs.

We've been performing Import/Export operations for several months now,
but we have never attempted import and export on a virtual catalog.
What I'm actually hoping for is that someone can give me a good idea
of where to start looking for the fix. Does this sound like there's
product out there which has bad data? Is something wrong with the
virtual catalog itself? Can virtual catalogs be imported/exported?
Is the XML not being generated properly?

Any ideas on what might be causing this would be greatly appreciated!

Chris
Vinayak Tadas[MSFT]

2004-09-22, 9:47 pm

When you export a virtual catalog the virtual catalog is exported as a base
catalog and not a virtual catalog (i.e The xml representation contains the
materialized representatio of the virtual catalog in base catalog format).
One thing you can do to replicate virtual catalog rules is use the
CatalogManager objects. The algorith can be something like
Dim oCatalogManagerSource
Dim oCatalogManagerDest
Set oCatalogManagerSource = CreateObject("Commerce.Catalgomanager")
Set oCatalogManagerDest = CreateObject("Commerce.Catalgomanager")

oCatalogManagerSource.Initialize "sourceSiteName" , false
oCatalogManagerDest.Initialize "destSiteName" , false

Set oSourceVirtualCatalog =
oCatalogManagerSource.GetCatalog("virtualcatalog")
Set oDestVirtualCatalog = oCatalogManagerDest.GetCatalog("virtualcatalog")

if oCatalogManagerDest is Nothing
Set oDestVirtualCatalog = oCatalogManagerDest.CreateCatalog() '
Create the virtual catalog on the destination
Set the properties on oDestVirtualCatalog based on the
oSourceVirtualCatalog properties
End if

Similarly get the Rules for the source and destination virtual catalogs. If
a rule exists in the source but not destination add it.
Get the Price rules for the source and destination virtual catalogs. If a
rule exists in the source but not destination add it.












--------------------
From: cmb23232001@yahoo.com (Chris)
Newsgroups: microsoft.public.commerceserver.general
Subject: Commerce Server - Importing a Virtual Catalog error message.
Date: 17 Sep 2004 08:15:38 -0700
Organization: http://groups.google.com
Lines: 29
Message-ID: <30f4b48c.0409170715.689be618@posting.google.com>
NNTP-Posting-Host: 63.170.158.133
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1095434139 9550 127.0.0.1 (17 Sep 2004 15:15:39
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 17 Sep 2004 15:15:39 +0000 (UTC)
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!proxad.net!postnews2.google.com!not-for-mail
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14787
X-Tomcat-NG: microsoft.public.commerceserver.general

Hi everyone,

We have been having trouble with the following operation: We have a
Virtual Catalog which we are trying to copy from a dev machine to
production in an XML file (using import/export). When we attempt to
import the file we created on dev in production, we get the following
error message:

Commerce Server: The ProductID or VariantID property for the Catalog
'MYCATALOG' does not match the current ProductID or VariantID
property.When importing a catalog in the update mode the ProductID or
VariantID property should match the existing ProductID or VariantID
properties

We also have a separate staging environment where this error occurs.
The odd thing is, if I export an XML file from one database and then
import it back into the same database, this error still occurs.

We've been performing Import/Export operations for several months now,
but we have never attempted import and export on a virtual catalog.
What I'm actually hoping for is that someone can give me a good idea
of where to start looking for the fix. Does this sound like there's
product out there which has bad data? Is something wrong with the
virtual catalog itself? Can virtual catalogs be imported/exported?
Is the XML not being generated properly?

Any ideas on what might be causing this would be greatly appreciated!

Chris


Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only. Thanks

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com