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

Skip Dever commented on OFBIZ-5259:
-----------------------------------

I agree Pierre, the import functionality works.  However, this is such an 
insidious thing that something needs to be done.  You have to be an ofbiz 
expert with the ability to get deeply into the java code to find out what is 
happening.  Export everything and import everything is the ONLY way to move 
from lower versions of ofbiz to the current version because most of the 
quantity fields were changed from floating-point (FLOAT8) to fixed-point 
(NUMERIC(16,6)).   

ECAs must be turned off to avoid catastrophic problems that took me many days 
to figure out.  I would suspect that having a bunch of ECA generated records as 
an artifact of importing some data is NOT what the user would expect.  Adding a 
checkbox and a comment to the import page would be easy to implement and have 
mimimal impact.  A warning at least would be prudent.
                
> entity import dir causes problems because of ecas
> -------------------------------------------------
>
>                 Key: OFBIZ-5259
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5259
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 12.04
>         Environment: All
>            Reporter: Skip Dever
>            Priority: Minor
>
> If you export all from an existing Ofbiz installation, then import them, lots 
> of bad things happen.  First, when you import OrderPaymentPreference, an eca 
> runs that creates multiple OrderStatus records that did not exist in the 
> export.  Not too bad except that this eca gets millions of OrderStatusIds 
> from the getNextSeqId service which writes updates to SequenceValueItem.  
> So, any any eca that runs as a result of the import dir will have the 
> SequenceValueItem record overwritten when SequenceValueItem is imported.
> In my view, there should be a bold warning and an option to disable ecas when 
> doing this import.
> As was pointed out to me, you can set entity-eca-enabled="false" in 
> entityengine.xml before starting ofbiz to do the import and that is why I 
> marked this as minor.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to