Openbravo Issue Tracking System - Modules
View Issue Details
0046275ModulesExternal Integration Infrastructurepublic2021-04-15 16:522021-05-26 11:02
gsuarez 
platform 
highmajoralways
closedno change required 
5
 
 
0046275: When an invoice is integrated by EDL and there is an error, the invoice is marked as sent, but it has not been sent to SAP.
When an invoice is integrated by EDL and there is an error, the invoice is marked as sent, but it has not been sent to SAP. The Has Been Exported to SAP field remains set to true but the EDL Request remains in error.
The module that throws the error is org.openbravo.util.export.soap. The error was connection not available.
1. Create an entity mapping with the following values:
  a). Openbravo Entity: Invoice
  b). Integration direction: From Openbravo to External System.
  c). Integration API Type: Manual BaseOBObject.
2. The edl process used is BOB ID Based Export Process.
3. Communication through SOAP method.
4. In the class SOAPExporter of the module org.openbravo.util.export.soap try to throw a force error.
5. As result, the invoice was marked as sent to the other system. The EDL Record was in error, so the invoice never goes to the other system.
No tags attached.
Issue History
2021-04-15 16:52gsuarezNew Issue
2021-04-15 16:52gsuarezAssigned To => platform
2021-05-19 22:59egoitzResolution time => 1623189600
2021-05-26 11:02AugustoMauchNote Added: 0128643
2021-05-26 11:02AugustoMauchStatusnew => closed
2021-05-26 11:02AugustoMauchResolutionopen => no change required

Notes
(0128643)
AugustoMauch   
2021-05-26 11:02   
Closing the issue because it is working as expected. The name of the field is confusing, I will explain its purpose.

The connector infrastructure provides a background process that periodically checks the invoices pending to be exported. Each time it is executed it will include in an EDL Request those invoices whose "Has Been Exported" flag is set to false, to ensure that the next time the process is executed, it is not included in new EDL Request, preventing sending duplicated invoices.

If the request fails, the "Has Been Exported" flag remains true, and the EDL Request status will be "Error". I understand the confusion, but that flag is more intended to be helpful to the infrastructure but not so much to the users that want to know if the record has reached SAP.

If I remember correctly a way to know if the record has been successfully sent to SAP is by checking if the exported IDOC has been attached to the invoice.