Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021260Openbravo ERPA. Platformpublic2012-07-31 10:562022-02-01 08:05
shuehner 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
pi 
 
Core
No
0021260: Error message in export.client/export.sample.data when FK is broken is not useful
When export.client or export.sample.data finds a broken FK relation (i.e. an ad_module_id in a table pointing to a module which does not exist in the db) then the error message points out the missing ad_module row with uuid but fails to point to the data containing that reference, thus making it very hard to debug+fix the problem in the data.
See steps to reproduce from isssue 21259 and check error message shown on export.client
Include data which contains the broken reference in the error message in addition to target of the reference.
No tags attached.
related to defect 00212593.0MP16 closed marvintm export.sample.data/export-client fails with ad_ref_data* having rows pointing to no longer installed modules. 
Issue History
2012-07-31 10:56shuehnerNew Issue
2012-07-31 10:56shuehnerAssigned To => alostale
2012-07-31 10:56shuehnerModules => Core
2012-07-31 10:57shuehnerRelationship addedrelated to 0021259
2012-08-02 14:01shuehnerAssigned Toalostale => marvintm
2012-09-11 21:04AugustoMauchNote Added: 0052009
2015-03-11 14:10alostaleAssigned Tomarvintm => AugustoMauch
2015-03-17 14:37alostaleAssigned ToAugustoMauch => platform
2015-11-10 16:52alostaleStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

Notes
(0052009)
AugustoMauch   
2012-09-11 21:04   
The exception (org.hibernate.ObjectNotFoundException) is thrown in this line [1], in the call to getClient()

[1] https://code.openbravo.com/erp/devel/pi/file/61377c542f43/src/org/openbravo/dal/xml/EntityXMLConverter.java#l529 [^]