ProdCatalog entity creation in data file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ProdCatalog entity creation in data file

Bruno Busco
I am trying to write an xml data file for my ecommerce application in order
to have all store information, product category and catalogs in a data file.
I started from the ecommerce DemoProducts.xml file. I use the webtools to
import the ext data but I get the following error I do not understand:

-----------
Checking data in [file:/F:/ofbiz/hot-deploy/eshop/data/Store.xml]
Entity [ProdCatalog] record not found for pk:
[GenericEntity:ProdCatalog][prodCatalogId,VARIEGCAT(java.lang.String)]
---------------
the xml line in my data file is the following:
<ProdCatalog prodCatalogId="VARIEGCAT" catalogName="Catalogo Variegomme"
useQuickAdd="Y"/>

I do not understand why ofbiz is trying to search for the ProdCatalog.
Shouldn't it create a record instead of searching for it?

Many thanks,

-Bruno
Reply | Threaded
Open this post in threaded view
|

Re: ProdCatalog entity creation in data file

rajsaini
It may be the error is not caused by the said xml fragment. It may due
to catalog/store or catalog/category association.

Raj


Bruno Busco wrote:

> I am trying to write an xml data file for my ecommerce application in order
> to have all store information, product category and catalogs in a data file.
> I started from the ecommerce DemoProducts.xml file. I use the webtools to
> import the ext data but I get the following error I do not understand:
>
> -----------
> Checking data in [file:/F:/ofbiz/hot-deploy/eshop/data/Store.xml]
> Entity [ProdCatalog] record not found for pk:
> [GenericEntity:ProdCatalog][prodCatalogId,VARIEGCAT(java.lang.String)]
> ---------------
> the xml line in my data file is the following:
> <ProdCatalog prodCatalogId="VARIEGCAT" catalogName="Catalogo Variegomme"
> useQuickAdd="Y"/>
>
> I do not understand why ofbiz is trying to search for the ProdCatalog.
> Shouldn't it create a record instead of searching for it?
>
> Many thanks,
>
> -Bruno
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: ProdCatalog entity creation in data file

Bruno Busco
Yes, it was!
-SOLVED-

Thank you

2008/4/19, Raj Saini <[hidden email]>:

>
> It may be the error is not caused by the said xml fragment. It may due to
> catalog/store or catalog/category association.
>
> Raj
>
>
> Bruno Busco wrote:
>
> > I am trying to write an xml data file for my ecommerce application in
> > order
> > to have all store information, product category and catalogs in a data
> > file.
> > I started from the ecommerce DemoProducts.xml file. I use the webtools
> > to
> > import the ext data but I get the following error I do not understand:
> >
> > -----------
> > Checking data in [file:/F:/ofbiz/hot-deploy/eshop/data/Store.xml]
> > Entity [ProdCatalog] record not found for pk:
> > [GenericEntity:ProdCatalog][prodCatalogId,VARIEGCAT(java.lang.String)]
> > ---------------
> > the xml line in my data file is the following:
> > <ProdCatalog prodCatalogId="VARIEGCAT" catalogName="Catalogo Variegomme"
> > useQuickAdd="Y"/>
> >
> > I do not understand why ofbiz is trying to search for the ProdCatalog.
> > Shouldn't it create a record instead of searching for it?
> >
> > Many thanks,
> >
> > -Bruno
> >
> >
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: ProdCatalog entity creation in data file

BJ Freeman
In reply to this post by Bruno Busco
as an import is done the underlying entity checks for PK if you have not
 disables them.
this can be avoided if you make sure all data in the relationships are
loaded first.
or you can turn off the pk checking.

Bruno Busco sent the following on 4/19/2008 11:10 AM:

> I am trying to write an xml data file for my ecommerce application in order
> to have all store information, product category and catalogs in a data file.
> I started from the ecommerce DemoProducts.xml file. I use the webtools to
> import the ext data but I get the following error I do not understand:
>
> -----------
> Checking data in [file:/F:/ofbiz/hot-deploy/eshop/data/Store.xml]
> Entity [ProdCatalog] record not found for pk:
> [GenericEntity:ProdCatalog][prodCatalogId,VARIEGCAT(java.lang.String)]
> ---------------
> the xml line in my data file is the following:
> <ProdCatalog prodCatalogId="VARIEGCAT" catalogName="Catalogo Variegomme"
> useQuickAdd="Y"/>
>
> I do not understand why ofbiz is trying to search for the ProdCatalog.
> Shouldn't it create a record instead of searching for it?
>
> Many thanks,
>
> -Bruno
>