Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036103Openbravo ERPA. Platformpublic2017-05-25 10:162017-06-15 12:22
alostale 
caristu 
normalminorhave not tried
closedfixed 
5
 
3.0PR17Q2.13.0PR17Q2.1 
AugustoMauch
Core
No
0036103: applying dataset fails if it contains properties not present in the target system
If a dataset contains information for properties that are not present in the instance that is being imported to, it fails.

This situation can occur if Dataset was exported from a version that had that properties but the instance it's imported in is in a different version.

1. Revert patch for 0036092
2. Follow steps in 0036092
In most of the cases those properties are properly defaulted, not relevant or even with null value. It would be better not to fail but just to warn in log and continue.

Note also the opposite case was already correctly ignored: this is, entity in target instance defining some properties the dataset has not because it was exported in a version they didn't exist.
No tags attached.
blocks defect 0036097 closed alostale applying dataset fails if it contains properties not present in the target system 
Issue History
2017-05-25 12:42alostaleTypedefect => backport
2017-05-25 12:42alostaleTarget Version => 3.0PR17Q2.1
2017-05-25 12:45alostaleReview Assigned To => caristu
2017-06-15 11:19hgbotCheckin
2017-06-15 11:19hgbotNote Added: 0097413
2017-06-15 11:19hgbotStatusscheduled => resolved
2017-06-15 11:19hgbotResolutionopen => fixed
2017-06-15 11:19hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/78f84b2b36fccfcba18ccd75271a2acc436ddb01 [^] => http://code.openbravo.com/erp/backports/3.0PR17Q2.1/rev/a71e9f9e791abe67c3c8787f5cd876a9c1c3f0a0 [^]
2017-06-15 11:19caristuAssigned Toalostale => caristu
2017-06-15 11:19caristuReview Assigned Tocaristu => AugustoMauch
2017-06-15 12:18AugustoMauchNote Added: 0097419
2017-06-15 12:18AugustoMauchStatusresolved => closed
2017-06-15 12:22AugustoMauchFixed in Version => 3.0PR17Q2.1

Notes
(0097413)
hgbot   
2017-06-15 11:19   
Repository: erp/backports/3.0PR17Q2.1
Changeset: a71e9f9e791abe67c3c8787f5cd876a9c1c3f0a0
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jun 15 11:18:01 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q2.1/rev/a71e9f9e791abe67c3c8787f5cd876a9c1c3f0a0 [^]

fixes issue 36103: dataset fails if it has properties not in target system
  Trying to apply a dataset with information for properties not present in target
  instance failed.

  Now in this case the property is just ignored and the process continues.

---
M src/org/openbravo/dal/xml/XMLEntityConverter.java
---
(0097419)
AugustoMauch   
2017-06-15 12:18   
Code reviewed and verified