Openbravo Issue Tracking System - Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0040968 | Modules | SAP Connector | public | 2019-05-29 10:22 | 2019-06-28 12:06 |
Reporter | airaceburu | ||||
Assigned To | AugustoMauch | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Regression date | |||||
Regression introduced by commit | |||||
Regression level | |||||
Review Assigned To | caristu | ||||
Support ticket | |||||
OBNetwork customer | |||||
Regression introduced in release | |||||
Summary | 0040968: Idocs without main segment can not be imported | ||||
Description | There are idocs without a main segment, that represent a single entity per file. In this case the sub segments are being recognized as different idocs with different structure. There needs to be a way to import this kind of iDocs. For instance, WP_PER idocs have a main segment called E1WPP01 (see attached WP_PER_WITH_MAIN_SEGMENT.xml file). Other idocs do not have an idoc segment. For instance, if WP_PER would not have a main segment, it would like like the WP_PER_WITHOUT_MAIN_SEGMENT.xml attached file). | ||||
Steps To Reproduce | In an environment with the SAP Connector installed: - Configure the connector to import data from /tmp/idocs: * Open the Communication with SAP ECC Server window * Add a new row: Communication Protocol -> Debug, Path to iDoc Folder -> /tmp/idocs - Copy the attached WP_PER_WITHOUT_MAIN_SEGMENT.xml to /tmp/idocs - Open the Process Request window, and execute the SAP ECC Import Synchronization Process. - An EDL request will not be created, and the following error will be shown in the log: 2019-06-25 15:41:47,532 [Import Entry - 1] ERROR org.openbravo.externaldata.integration.process.AsynchronousProcessor - Unexpected error processing item org.openbravo.base.exception.OBException: Error while importing an item: null at org.openbravo.service.external.integration.edl.BaseImportItemProcessor.processItem(BaseImportItemProcessor.java:69) ~[classes/:?] at org.openbravo.externaldata.integration.process.AsynchronousProcessor.processBatchWithInput(AsynchronousProcessor.java:235) [classes/:?] at org.openbravo.externaldata.integration.process.AsynchronousProcessor.processBatch(AsynchronousProcessor.java:211) [classes/:?] at org.openbravo.externaldata.integration.process.ProcessRequest.processRequestLine(ProcessRequest.java:477) [classes/:?] at org.openbravo.externaldata.integration.process.EDLImportEntryProcessor$EDLEntryProcessRunnable.processEntry(EDLImportEntryProcessor.java:154) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:372) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:293) [classes/:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_181] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_181] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181] Caused by: java.lang.NullPointerException at org.openbravo.service.external.integration.SynchronizableBusinessObject.getTypeSafeValue(SynchronizableBusinessObject.java:97) ~[classes/:?] at org.openbravo.service.external.integration.importer.DalSynchronizableBusinessObjectImporter.getBobFromUniqueProperties(DalSynchronizableBusinessObjectImporter.java:144) ~[classes/:?] at org.openbravo.service.external.integration.importer.DalSynchronizableBusinessObjectImporter.getBaseOBObjectFromDatabase(DalSynchronizableBusinessObjectImporter.java:128) ~[classes/:?] at org.openbravo.service.external.integration.importer.DalSynchronizableBusinessObjectImporter.getMappedItem(DalSynchronizableBusinessObjectImporter.java:75) ~[classes/:?] at org.openbravo.service.external.integration.importer.DalSynchronizableBusinessObjectImporter.getMappedItem(DalSynchronizableBusinessObjectImporter.java:1) ~[classes/:?] at org.openbravo.service.external.integration.importer.SynchronizableBusinessObjectImporter.createOrUpdateItem(SynchronizableBusinessObjectImporter.java:132) ~[classes/:?] at org.openbravo.service.external.integration.importer.SynchronizableBusinessObjectImporter.importFromSynchronizableBusinessObject(SynchronizableBusinessObjectImporter.java:107) ~[classes/:?] at org.openbravo.service.external.integration.edl.BaseImportItemProcessor.importSBO(BaseImportItemProcessor.java:88) ~[classes/:?] at org.openbravo.service.external.integration.edl.BaseImportItemProcessor.processItem(BaseImportItemProcessor.java:63) ~[classes/:?] ... 11 more | ||||
Proposed Solution | N/A | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | issue40968.diff (31,626) 2019-05-29 13:22 https://issues.openbravo.com/file_download.php?file_id=12993&type=bug WP_PER_WITH_MAIN_SEGMENT.xml (1,002) 2019-06-25 15:43 https://issues.openbravo.com/file_download.php?file_id=13056&type=bug WP_PER_WITHOUT_MAIN_SEGMENT.xml (961) 2019-06-25 15:43 https://issues.openbravo.com/file_download.php?file_id=13057&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-05-29 10:22 | airaceburu | New Issue | |||
2019-05-29 10:22 | airaceburu | Assigned To | => AugustoMauch | ||
2019-05-29 10:22 | airaceburu | File Added: ORDERS05.xml | |||
2019-05-29 10:22 | airaceburu | Resolution time | => 1560290400 | ||
2019-05-29 13:22 | AugustoMauch | File Added: issue40968.diff | |||
2019-06-25 11:32 | AugustoMauch | File Deleted: ORDERS05.xml | |||
2019-06-25 15:43 | AugustoMauch | Description Updated | bug_revision_view_page.php?rev_id=18997#r18997 | ||
2019-06-25 15:43 | AugustoMauch | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18999#r18999 | ||
2019-06-25 15:43 | AugustoMauch | File Added: WP_PER_WITH_MAIN_SEGMENT.xml | |||
2019-06-25 15:43 | AugustoMauch | File Added: WP_PER_WITHOUT_MAIN_SEGMENT.xml | |||
2019-06-25 16:08 | hgbot | Checkin | |||
2019-06-25 16:08 | hgbot | Note Added: 0113010 | |||
2019-06-25 16:08 | hgbot | Status | new => resolved | ||
2019-06-25 16:08 | hgbot | Resolution | open => fixed | ||
2019-06-25 16:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.service.integration.sapecc/rev/80e7a7111d9a0cc6b25c5b52a14f01ef3f50cf1c [^] | ||
2019-06-26 08:49 | hgbot | Checkin | |||
2019-06-26 08:49 | hgbot | Note Added: 0113025 | |||
2019-06-26 09:44 | hgbot | Checkin | |||
2019-06-26 09:44 | hgbot | Note Added: 0113026 | |||
2019-06-28 12:06 | caristu | Review Assigned To | => caristu | ||
2019-06-28 12:06 | caristu | Note Added: 0113103 | |||
2019-06-28 12:06 | caristu | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|