Hi,
I have tried to load the training sample data into the new MP9 by doing
these steps:
1. check out mp9
2. configure it
3. delete SmallBazaar.xml and Accounting_Test.xml inside sampledata
folder
4. copied TrainingBazaar.xml to that folder
5. ran the install.source ant task
and received the following error
...
generate.entities:
[workflow] Adding param:
/home/rok/openbravoTraining/src/org/openbravo/base/gen/gen_entity.oaw
[workflow] Adding param:
-pob.properties.location=/home/rok/openbravoTraining/config/Openbravo.properties
[workflow] Adding param: -pbase.src.gen=/home/rok/openbravoTraining/src-gen
[workflow] Adding param: --ant
[javac] Compiling 447 source files to
/home/rok/openbravoTraining/build/classes
import.sample.data:
[echo] Importing sample reference data
BUILD FAILED
/home/rok/openbravoTraining/build.xml:505: The following error occurred
while executing this line:
/home/rok/openbravoTraining/build.xml:417: The following error occurred
while executing this line:
/home/rok/openbravoTraining/src/build.xml:191:
org.openbravo.base.exception.OBException: Exception (Exception when parsing
entity FinancialMgmtAcctRptNode (1000000):Value 10.0 can not be parsed to an
instance of class java.lang.Long) while importing from file
/home/rok/openbravoTraining/referencedata/sampledata/TrainingBazaar.xml
Total time: 11 minutes 49 seconds
By doing several changes inside the TrainingBazaar.xml such as:
@@ -92981,7 +92981,7 @@
<updatedBy transient="true" id="100"/>
<name>Liabilities & Owner's Equity</name>
<description xsi:nil="true"/>
- <lineNo>20.0</lineNo>
+ <lineNo>20</lineNo>
</FinancialMgmtAcctRptGroup>
...
I was able to resolve this issue.
My questions are:
1. How come this datatype change has not been published in the
http://wiki.openbravo.com/wiki/ERP/2.50/API_changes article? or am I
missing it somehwere?
2. What should the standard approach be to upgrading/updating the sample
data? Should upgraders be used on the database and then exporting or?
Cheers
Rok
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Openbravo-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-development