Commerce Server - Importing a Virtual Catalog error message.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Commerce Server - Importing a Virtual Catalog error message.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Commerce Server - Importing a Virtual Catalog error message.  
Chris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:47 AM

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





[ Post a follow-up to this message ]



    RE: Commerce Server - Importing a Virtual Catalog error message.  
Vinayak Tadas[MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:47 AM

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:45 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register