Openbravo Issue Tracking System - Modules
View Issue Details
0053586ModulesSAP Connectorpublic2023-10-04 07:552023-10-10 12:46
caristu 
Triage Platform Conn 
highminorhave not tried
closedfixed 
5
 
 
0053586: Attaching iDocs to Exported Records preference is not working
Attaching iDocs to Exported Records preference[1] is not working.

[1] http://wiki.openbravo.com/wiki/Module:SAP_ECC_Integration/UserGuide#Attaching_iDocs_to_Exported_Records [^]
1) Create the Attach Exported iDocs preference, at system client with value "Y"
2) In the "Communication with SAP ECC Server" create a debug configuration:
  - Communication Protocol: Debug
  - Path to iDoc folder: /tmp
3) Execute the "Initialize Entity Synchronization" process
4) Schedule the "SAP ECC Export Synchronization Process" process to export at least one element, for example a product
5) Go to the record of the exported product and note that no attachment has been created. Note that the following error appears in the log:

2023-10-04 08:00:16,119 [Import Entry - 1] ERROR org.openbravo.service.integration.sapecc.process.SapEccExporterSynchronizableBusinessObjectExporter - There was an error while attaching an idoc to a record
java.lang.IllegalArgumentException: id to load is required for loading
    at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:96) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final]
    at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:64) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad(SessionImpl.java:2845) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.lambda$load$1(SessionImpl.java:2825) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.perform(SessionImpl.java:2781) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2825) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final]
    at org.hibernate.internal.SessionImpl.get(SessionImpl.java:1024) ~[hibernate-core-5.6.15.Final.jar:5.6.15.Final]
    at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:535) ~[classes/:?]
    at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:501) ~[classes/:?]
    at org.openbravo.dal.service.OBDal.get(OBDal.java:367) ~[classes/:?]
    at org.openbravo.client.application.attachment.AttachImplementationManager.checkReadableAccess(AttachImplementationManager.java:470) ~[classes/:?]
No tags attached.
Issue History
2023-10-04 07:55caristuNew Issue
2023-10-04 07:55caristuAssigned To => Triage Platform Conn
2023-10-04 08:02caristuDescription Updatedbug_revision_view_page.php?rev_id=26937#r26937
2023-10-04 08:02caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26939#r26939
2023-10-04 08:08hgbotNote Added: 0155441
2023-10-10 12:46hgbotResolutionopen => fixed
2023-10-10 12:46hgbotStatusnew => closed
2023-10-10 12:46hgbotNote Added: 0155734
2023-10-10 12:46hgbotNote Added: 0155735

Notes
(0155441)
hgbot   
2023-10-04 08:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.integration.sapecc/-/merge_requests/5 [^]
(0155734)
hgbot   
2023-10-10 12:46   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.integration.sapecc [^]
Changeset: ad1d10d505b8304a57e81330c522e6ffe8566cdc
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 04-10-2023 08:08:53
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.integration.sapecc/-/commit/ad1d10d505b8304a57e81330c522e6ffe8566cdc [^]

fixes BUG-53586: "Attaching iDocs to Exported Records" preference is not working

 The record ID was not being retrieved properly when creating the
attachment. Now this has been fixed.

---
M src/org/openbravo/service/integration/sapecc/process/SapEccExporterSynchronizableBusinessObjectExporter.java
---
(0155735)
hgbot   
2023-10-10 12:46   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.integration.sapecc/-/merge_requests/5 [^]