Error While adding Product Price

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

Error While adding Product Price

rendeddula
Hi,

    when i tried to update the following error is occurred.

The Following Errors Occurred:

In set-nonpk-fields a value was not found with the specified valueAcsr: lookedUpValue, not setting fields


the above error is coming for only some products, i am not getting why. please help me.


my ftl code is this.


<script type="text/javascript"> function JSUpdateProductCheck(objForm) { if(objForm.internalName.value.length==0){ alert('Product Name Should Not Be Empty'); objForm.internalName.focus(); return false; } else if(objForm.price.value.length==0){ alert('Price Should Not Be Empty'); objForm.price.focus(); return false; } return true; } </script><div class="screenlet"><div class="screenlet-title-bar"><ul><li class="h3">Update Product</li>

</ul><br class="clear" /></div>
<div  class="screenlet-body">
<form method="post" action="<@ofbizUrl>updateTecleverProduct</@ofbizUrl>" id="UpdateProduct" class="basic-form" name="UpdateProduct" onsubmit="return JSUpdateProductCheck(this);">
                                                                                                                                                                                                                                                       
Product Id <input type="text" name="productId" size="20" maxlength="20" id="productId"  readonly="true" value="${parameters.productId}"/>
   
Product Name <input type="text" name="internalName" size="20" maxlength="20" id="internalName"  value="${productData.internalName?if_exists}"/>
   
Group Name     <select name="primaryProductCategoryId">
    <#if productData.primaryProductCategoryId?has_content>
                  <option value="${productData.primaryProductCategoryId}">${productData.primaryProductCategoryId}</option>                 
           </#if>
           <#list productCategoryList as categoryList>
                  <option value="${categoryList.productCategoryId}">${categoryList.productCategoryId}</option>
           </#list>
    </select>
   
Product Type     <select name="productTypeId">
    <#if productData.productTypeId?has_content>
                  <option value="${productData.productTypeId}">${productData.productTypeId}</option>                 
           </#if>
           <#list productTypeList as productTypeList>
                  <option value="${productTypeList.description}">${productTypeList.description}</option>
           </#list>
    </select>
   
Price  <input type="text" name="price" size="30"  maxlength="255"   id="price"  value="${productPrice.price?if_exists}"/>
   
Purpose  <input type="text" name="productPricePurposeId" size="30"  maxlength="255"   id="price"  value="PURCHASE"/>
   
Purpose  <input type="text" name="currencyUomId" size="30"  maxlength="255"   id="price"  value="INR"/>
   
Purpose  <input type="text" name="fromDate" size="30"  maxlength="255"   id="price"  value="${productPrice.fromDate}"/>
   
Price Type  <input type="text" name="productPriceTypeId" size="30"  maxlength="255"   id="price"  value="DEFAULT_PRICE"/>
   
Store Group <input type="text" name="productStoreGroupId" size="30"  maxlength="255"   id="price"  value="_NA_"/>
   
Taxable  <select name="taxable" id="taxable" size="1">
    <#if productData.taxable?has_content>
        <option value="${productData.taxable?if_exists}">${productData.taxable?if_exists}</option>
        </#if>
        <option value=""> </option>       
  <option value="N">N</option> <option value="Y">Y</option></select>
   
Facility Id     <select name="facilityId">
    <#if productData.facilityId?has_content>
                  <option value="${productData.facilityId}">${productData.facilityId}</option>                 
           </#if>
           <#list facilityList as facilitysList>          
                  <option value="${facilitysList.facilityId}">${facilitysList.facilityId}</option>                 
           </#list>
    </select>
   
Min Stock  <input type="text" name="minimumStock" size="30"  maxlength="255"   id="price"  value="${productFacility.minimumStock?if_exists}"/>
   
Re Order  <input type="text" name="reorderQuantity" size="30"  maxlength="255"   id="price"  value="${productFacility.reorderQuantity?if_exists}"/>
   
 <input type="submit"  class="smallSubmit" name="submitButton" value="Update Product"/>
   
</form> 
</div>