Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031336Openbravo ERP02. Master data managementpublic2015-11-03 13:362015-11-03 13:36
AugustoMauch 
Triage Omni OMS 
normalminorhave not tried
newopen 
5
 
 
Core
No
0031336: The c_reject_reason table should be included in the Client Definition dataset
The c_reject_reason_id column of the c_order table references the c_reject_reason table.

The problem is that the c_order table is included in the Client Definition dataset, but the c_reject_reason table is not. This will cause referencial integrity problems when importing a sample data that containes not null values in the c_reject_reason_id column of the c_reject_reason table.
For any client:
- Add values to some rows in the c_reject_reason_id column of the c_order table.
- export the sample data for that client:
ant export.sample.data -Dclient="YourClient" -Dmodule=org.openbravo
  this will generate a XML file for the c_order that contains values for its c_reject_reason_id column, but it will not generate a XML file for the c_reject_reason table
- Import the sample data for that client, for instance by executing ant install.source. There will be referencial integrity problemes like these:

     [java] 161567 WARN - SQL Command failed with: ERROR: insert or update on table "c_order" violates foreign key constraint "c_order_reject_reason"
     [java] Detail: Key (c_reject_reason_id)=(1F4B6B9432EA9A5055D8ECD6552BFD05) is not present in table "c_reject_reason".
No tags attached.
Issue History
2015-11-03 13:36AugustoMauchNew Issue
2015-11-03 13:36AugustoMauchAssigned To => Triage Finance
2015-11-03 13:36AugustoMauchModules => Core
2015-11-03 13:36AugustoMauchTriggers an Emergency Pack => No

There are no notes attached to this issue.