Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C4A19FBD for ; Thu, 24 Nov 2011 05:45:48 +0000 (UTC) Received: (qmail 97971 invoked by uid 500); 24 Nov 2011 05:45:47 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 97949 invoked by uid 500); 24 Nov 2011 05:45:47 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 97935 invoked by uid 99); 24 Nov 2011 05:45:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 05:45:43 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of paul@cohsoft.com.au does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 05:45:37 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RTS7Y-0006rE-Qg for user@ofbiz.apache.org; Wed, 23 Nov 2011 21:45:16 -0800 Date: Wed, 23 Nov 2011 21:45:16 -0800 (PST) From: Paul Foxworthy To: user@ofbiz.apache.org Message-ID: <1322113516819-4102833.post@n4.nabble.com> In-Reply-To: <1321961580.508.8.camel@WTUK100Developer> References: <1321961580.508.8.camel@WTUK100Developer> Subject: Re: Cannot add sub catorgories or new front end user MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Nick Holland wrote > > Hello, > Ive just installed ofbiz 9.04.1 on a centOs server, and when im trying > to add a category under an existing one, i get the following error: > > The Following Errors Occurred: > > ERROR: Could not complete the Create an ProductCategory > [file:/usr/share/apache-ofbiz-09.04.01/applications/product/script/org/ofbiz/product/category/CategoryServices.xml#createProductCategory] > process [problem creating the newEntity value: Error while inserting: > [GenericEntity:ProductCategory][categoryImageUrl,null()][categoryName,test(java.lang.String)][createdStamp,2011-11-22 > 04:27:50.79(java.sql.Timestamp)][createdTxStamp,2011-11-22 > 04:27:50.761(java.sql.Timestamp)][description,test(java.lang.String)][detailScreen,null()][lastUpdatedStamp,2011-11-22 > 04:27:50.79(java.sql.Timestamp)][lastUpdatedTxStamp,2011-11-22 > 04:27:50.761(java.sql.Timestamp)][linkOneImageUrl,null()][linkTwoImageUrl,null()][primaryParentCategoryId,TestCatalog(java.lang.String)][productCategoryId,TEST(java.lang.String)][productCategoryTypeId,CATALOG_CATEGORY(java.lang.String)] > (SQL Exception while executing the following:INSERT INTO > OFBIZ.PRODUCT_CATEGORY (PRODUCT_CATEGORY_ID, PRODUCT_CATEGORY_TYPE_ID, > PRIMARY_PARENT_CATEGORY_ID, CATEGORY_NAME, DESCRIPTION, LONG_DESCRIPTION, > CATEGORY_IMAGE_URL, LINK_ONE_IMAGE_URL, LINK_TWO_IMAGE_URL, DETAIL_SCREEN, > SHOW_IN_SELECT, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, > CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) > (INSERT on table 'PRODUCT_CATEGORY' caused a violation of foreign key > constraint 'PROD_CTGRY_PARENT' for key (TestCatalog). The statement has > been rolled back.))] > > I apoligise if this is a simple error, but I am new to this. I suspect > it is problems with the Derby database permissions, however Im not sure > how to set these. > > Any ideas? > > Nick > Hi Nick, I think you don't have a ProductCategory with an ID of TestCatalog, and therefore you can't use that as a parent for the test ProductCategory. Either create TestCatalog first, or don't set a parent at all. Cheers Paul Foxworthy -- View this message in context: http://ofbiz.135035.n4.nabble.com/Cannot-add-sub-catorgories-or-new-front-end-user-tp4095310p4102833.html Sent from the OFBiz - User mailing list archive at Nabble.com.