The following required parameter is missing: [getInventoryAvailableByFacility.facilityId])

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

The following required parameter is missing: [getInventoryAvailableByFacility.facilityId])

Javier Hdez
Hello

In webstore I can search for products, but when I enter the product page I get this error, in /ecommerce/products/product_ID.

Say that getInventoryAvailableByFacility.facilityId is missing, but the product has assigned a Facility, Party and has stock.

What else could I review in the product to correct this error?

Best regards.

org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#product]: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#productdetail]: java.lang.IllegalArgumentException: Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId] (Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId]) (Error rendering screen [component://ecomm
 erce/widget/CatalogScreens.xml#productdetail]: java.lang.IllegalArgumentException: Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId] (Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId])) (Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#productdetail]: java.lang.IllegalArgumentException: Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationExcep
 tion: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId] (Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId]) (Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#productdetail]: java.lang.IllegalArgumentException: Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId] (Error running script at location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]: org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId])))
Reply | Threaded
Open this post in threaded view
|

Re: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId])

Vaibhav Jain
Hello Javier,

FacilityId is required attribute while we fetch inventory according to the
facility using getInventoryAvailableByFacility.

Please check why *facilityId* is missing when you hit the request.

For quick references:
1) Productfacility  data may be missing.
2) ownerPartyId may be missing in Facility entity.

Thanks & Regards,

Vaibhav Jain
Hotwax Systems,
[hidden email]

On Sun, Dec 3, 2017 at 8:04 PM, Javier H. <[hidden email]> wrote:

> Hello
>
> In webstore I can search for products, but when I enter the product page I
> get this error, in /ecommerce/products/product_ID.
>
> Say that getInventoryAvailableByFacility.facilityId is missing, but the
> product has assigned a Facility, Party and has stock.
>
> What else could I review in the product to correct this error?
>
> Best regards.
>
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering
> screen [component://ecommerce/widget/CatalogScreens.xml#product]:
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering
> screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]:
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering
> screen [component://ecommerce/widget/CatalogScreens.xml#productdetail]:
> java.lang.IllegalArgumentException: Error running script at location
> [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationException: The following
> required parameter is missing: [getInventoryAvailableByFacility.facilityId]
> (Error running script at location [component://order/
> groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationException: The following
> required parameter is missing: [getInventoryAvailableByFacility.facilityId])
> (Error rendering screen [component://ecomm
>  erce/widget/CatalogScreens.xml#productdetail]: java.lang.IllegalArgumentException:
> Error running script at location [component://order/
> groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationException: The following
> required parameter is missing: [getInventoryAvailableByFacility.facilityId]
> (Error running script at location [component://order/
> groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationException: The following
> required parameter is missing: [getInventoryAvailableByFacility.facilityId]))
> (Error rendering screen [component://ecommerce/widget/
> CommonScreens.xml#main-decorator]: org.apache.ofbiz.widget.renderer.ScreenRenderException:
> Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#productdetail]:
> java.lang.IllegalArgumentException: Error running script at location
> [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationExcep
>  tion: The following required parameter is missing: [
> getInventoryAvailableByFacility.facilityId] (Error running script at
> location [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationException: The following
> required parameter is missing: [getInventoryAvailableByFacility.facilityId])
> (Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#productdetail]:
> java.lang.IllegalArgumentException: Error running script at location
> [component://order/groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationException: The following
> required parameter is missing: [getInventoryAvailableByFacility.facilityId]
> (Error running script at location [component://order/
> groovyScripts/entry/catalog/ProductDetail.groovy]:
> org.apache.ofbiz.service.ServiceValidationException: The following
> required parameter is missing: [getInventoryAvailableByFacilit
> y.facilityId])))
>