[ 
https://issues.apache.org/jira/browse/OFBIZ-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268344#comment-14268344
 ] 

Wai commented on OFBIZ-5949:
----------------------------

Could someone help out?

For this patch to work properly, I had to make a modification to the data file 
at line#69 of
applications/commonext/data/ProductStoreData.xml

The original entry was:

<ShipmentCostEstimate productStoreShipMethId="9003" 
productStoreId="${productStoreId}" orderFlatPrice="10.0" 
orderItemFlatPrice="0.0" orderPricePercent="0.0" 
shipmentMethodTypeId="NEXT_DAY" carrierPartyId="UPS" 
carrierRoleTypeId="CARRIER" weightBreakId="9002" weightUnitPrice="0.35"/>

and replaced it with

<ShipmentCostEstimate productStoreShipMethId="9003" 
productStoreId="${productStoreId}" orderFlatPrice="10.0" 
orderItemFlatPrice="0.0" orderPricePercent="0.0" 
shipmentMethodTypeId="NEXT_DAY_AIR" carrierPartyId="UPS" 
carrierRoleTypeId="CARRIER" weightBreakId="9002" weightUnitPrice="0.35"/>

ie. replacing shipmentMethodTypeId="NEXT_DAY" to 
shipmentMethodTypeId="NEXT_DAY_AIR". 

This is required because the original data references a nonexistent entry in 
CarrierShipmentMethod and causes a foreign key violation.  Now I do not know if 
the data in this file are actual operating values to be used in production.

If anyone is familiar with the data please let me know or make the needed 
correction.

Thanks

> Remove generation of temp file when loading entity xml file containing 
> placeholders
> -----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5949
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5949
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Wai
>         Attachments: OFBIZ-5949.patch
>
>
> Currently, when creating a new product store using ofbizsetup component 
> default data associated with the product store is loaded into the database 
> using the following steps.
> 1. read default data from entity xml file and replace specific items in the 
> read data and write to temp file.
> 2. use service=parseEntityXmlFile to load the processed file into database.
> The issue with this method is that the temp file can present a problem when 
> ofbiz is operating in multitenant mode.
> The solution is to modify the relevant services so that no temp file needs 
> generated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to