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 >
