Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0729D200C73 for ; Wed, 10 May 2017 21:15:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 05BF4160B9C; Wed, 10 May 2017 19:15:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4AC77160B99 for ; Wed, 10 May 2017 21:15:18 +0200 (CEST) Received: (qmail 45315 invoked by uid 500); 10 May 2017 19:15:17 -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 45304 invoked by uid 99); 10 May 2017 19:15:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 19:15:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A5D3A1802CB for ; Wed, 10 May 2017 19:15:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kJROr9dE-ktz for ; Wed, 10 May 2017 19:15:12 +0000 (UTC) Received: from p3plsmtpa08-09.prod.phx3.secureserver.net (p3plsmtpa08-09.prod.phx3.secureserver.net [173.201.193.110]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A3A345F642 for ; Wed, 10 May 2017 19:15:11 +0000 (UTC) Received: from skipXP ([96.93.114.201]) by :SMTPAUTH: with SMTP id 8X4Cd1VAAQw9s8X4Cd9zGr; Wed, 10 May 2017 12:14:33 -0700 From: "Skip" To: Subject: RE: Problem with description field Date: Wed, 10 May 2017 12:08:55 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-CMAE-Envelope: MS4wfK/EIqOQTn4GhyKLrjuElGNPLxm8NbkdUryoIuvRBMfDHDJEslp+/aOMxE5dY/ic21EvwmyBtumsTzG3nwBo5i9JMZBbIzneUIDv4bSHg5/X45xEfG3X MqdicOn+Y8cM2RQwIIs1NZ9O1CjPIUPrcraZ33quLA7vBYj/tgjs8o88 archived-at: Wed, 10 May 2017 19:15:19 -0000 Thanks Jeremy That was a typo. It is actually description (lower case). I also took = the time to compare the description fields in ReturnItem and = VendingMachinePack in pgAdmin and they are identical except for = Position. Also, because I can put data in this field using WebTools, I don't think = the issue is in postgres. I have written hundreds of custom services for ofbiz and millions of = lines of java code. This particular service is different in one regard. Usually, I write these kinds of services like this: transaction.begin add new or modified records to a "toStore" iist delegator.storeAll(toStore); transaction.commit This one is different because I am modifying InventoryItem records in a = loop like this transaction.begin get count of inventory items needed while count > 0 get inventory item and reduce count by availabletopromise modify inventoryItem record and put in toStore create a VendingMachinePack and other entities and add to toStore delegator.storeAll(toStore); endwhile transaction.commit So, as you can see, there can be multiple delegator.storeAll() calls in = a single transaction. However, I have spent three days testing this and = I can pick a product where a single inventoryItem exists that can = fullfil the request and the results are the same. Thanks again for thinking about this very strange issue. Skip -----Original Message----- From: Jeremy Olmstead [mailto:jolmstead1@gmail.com] Sent: Wednesday, May 10, 2017 11:00 AM To: user@ofbiz.apache.org Subject: Re: Problem with description field This is a long shot but, in your statement below, description is spelled incorrectly... Looking at the table with pgAdmin (I am using postgres), I find the = field DESCRITPTION as expected, but it is empty. On Tue, May 9, 2017 at 7:33 PM, Skip wrote: > I have a problem with a field named "description". The problem is = that > when > I write to this field, it never ends up in the database. > > The entity definition looks like this: > > ... > field name=3D"description" type=3D"description" > field name=3D"descAgain" type=3D"description" > ... > > I write to the field like this: > > Map input =3D UtilMisc.toMap(...); > input.put("description", description); > input.put("descAgain", description); > > ... > GenericValue newPack =3D delegator.makeValue("VendingMachinePack", = input); > System.out.println("Have Pack =3D " + newPack); > //newPack.create(); > toStore.add(newPack); > > System.out.println("Have description " + newPack.getString(" > description")); > > .... > > delegator.storeAll(toStore); > > My log file shows the correct description from the = System.out.println("Have > description " statement. > > However, looking at the table using WebTools, the description field is > EMPTY!!! > > I added a second description field called "descAgain" and this shows = up > fine > as well as all the other 20 fields in the table. Just the description > field > is empty. > > There are dozens of uses of "description" as a field name. > > Looking at the table with pgAdmin (I am using postgres), I find the = field > DESCRITPTION as expected, but it is empty. > > I have tried deleting the table with pgAdmin and having it = automatically > recreated. As can be seen above, I have tried calling = newPack.create(); > instead of delegator.storeAll(toStore); as well as a bunch of other = stuff. > > Nothing I have tried has any effect on "description" this field. > > My log file has no errors. > > Anyone have any ideas on what might be going on? > > Skip > >