Tried your code in a groovy file and it worked.
Bilgin
On Wed, Jun 23, 2010 at 12:02 AM, Patrick <
[hidden email]>wrote:
> When I create a ProductCategory in java, the categoryName doesn't get
> stored. Any possible idea why? It gives no errors and throws no
> exceptions. The row is populated with all the data but the
> categoryName. I can modify categoryName from the admin panel, and I
> even tried to call that service, updateProductCategory, from java, but
> the same problem occured.
>
> GenericValue newSubCategory = delegator.makeValue("ProductCategory");
> newSubCategory.set("productCategoryId", subCatId); //works
> newSubCategory.set("categoryName", "testName"); //doesn't work
> newSubCategory.set("productCategoryTypeId", "CATALOG_CATEGORY");
> try {
> newSubCategory.create();
> } catch (GenericEntityException e) {
>
> Thanks in advance.
>