Openbravo Issue Tracking System - POS2 | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0056392 | POS2 | Core | public | 2024-09-06 08:41 | 2024-09-06 13:17 | |||||||
Reporter | azzeddine_meftoh | |||||||||||
Assigned To | ifernandez | |||||||||||
Priority | normal | Severity | critical | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0056392: subsitutive invoice not working with azure storage | |||||||||||
Description | when generating a substitutive invoice in POS2 we get the following error in the BO logs : 2024-09-05 20:53:29,974 [NonBlocking - 1] WARN org.openbravo.dal.core.OBInterceptor - The object C_IMPORT_ENTRY(3EFDE01CBF1240F1A99166B536873F61) (organization: B430FD49274844F2B1A3C44A5EB7912D, typeofdata: OBEDL_Request) is detected as not new (is its id != null?) but it does not have a current state in the database. This can happen when the id is set but not setNewObject(true); has been called. 2024-09-05 21:01:46,535 [Import Entry - 1] ERROR org.openbravo.retail.posterminal.POSDataSynchronizationErrorHandler - An error happened when processing a record: org.openbravo.base.exception.OBException: Error uploading reprintable document at org.openbravo.client.application.attachment.ReprintableDocumentManager.upload(ReprintableDocumentManager.java:202) ~[classes/:?] at org.openbravo.client.application.attachment.ReprintableDocumentManager.upload(ReprintableDocumentManager.java:161) ~[classes/:?] at org.openbravo.client.application.attachment.ReprintableDocumentManager$Proxy$_$$_WeldClientProxy.upload(Unknown Source) ~[classes/:?] at org.openbravo.retail.posterminal.importprocess.ReprintableDocumentLoader.saveRecord(ReprintableDocumentLoader.java:44) ~[classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:214) [classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:165) [classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:97) [classes/:?] at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:55) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:447) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:370) [classes/:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] Caused by: java.lang.IllegalArgumentException: Unknown source document linked to ReprintableDocument 5D58165E58314A86B4D5791FB48C3067 at org.openbravo.service.integration.azure.storage.attachments.AzureStorageReprintableDocumentClient.getTableId(AzureStorageReprintableDocumentClient.java:62) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageReprintableDocumentClient.mapAsKey(AzureStorageReprintableDocumentClient.java:46) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageReprintableDocumentClient.mapAsKey(AzureStorageReprintableDocumentClient.java:19) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.BaseAzureStorageAttachmentClient.upload(BaseAzureStorageAttachmentClient.java:94) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageAttachImplementation.upload(AzureStorageAttachImplementation.java:144) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageAttachImplementation$Proxy$_$$_WeldClientProxy.upload(Unknown Source) ~[classes/:?] at org.openbravo.client.application.attachment.ReprintableDocumentManager.upload(ReprintableDocumentManager.java:200) ~[classes/:?] ... 14 more 2024-09-05 21:01:46,541 [Import Entry - 1] ERROR org.openbravo.retail.posterminal.POSDataSynchronizationErrorHandler - Error while loading order org.openbravo.base.exception.OBException: Error uploading reprintable document at org.openbravo.client.application.attachment.ReprintableDocumentManager.upload(ReprintableDocumentManager.java:202) ~[classes/:?] at org.openbravo.client.application.attachment.ReprintableDocumentManager.upload(ReprintableDocumentManager.java:161) ~[classes/:?] at org.openbravo.client.application.attachment.ReprintableDocumentManager$Proxy$_$$_WeldClientProxy.upload(Unknown Source) ~[classes/:?] at org.openbravo.retail.posterminal.importprocess.ReprintableDocumentLoader.saveRecord(ReprintableDocumentLoader.java:44) ~[classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:214) [classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:165) [classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:97) [classes/:?] at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:55) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:447) [classes/:?] at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:370) [classes/:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] Caused by: java.lang.IllegalArgumentException: Unknown source document linked to ReprintableDocument 5D58165E58314A86B4D5791FB48C3067 at org.openbravo.service.integration.azure.storage.attachments.AzureStorageReprintableDocumentClient.getTableId(AzureStorageReprintableDocumentClient.java:62) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageReprintableDocumentClient.mapAsKey(AzureStorageReprintableDocumentClient.java:46) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageReprintableDocumentClient.mapAsKey(AzureStorageReprintableDocumentClient.java:19) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.BaseAzureStorageAttachmentClient.upload(BaseAzureStorageAttachmentClient.java:94) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageAttachImplementation.upload(AzureStorageAttachImplementation.java:144) ~[classes/:?] at org.openbravo.service.integration.azure.storage.attachments.AzureStorageAttachImplementation$Proxy$_$$_WeldClientProxy.upload(Unknown Source) ~[classes/:?] at org.openbravo.client.application.attachment.ReprintableDocumentManager.upload(ReprintableDocumentManager.java:200) ~[classes/:?] ... 14 more | |||||||||||
Steps To Reproduce | generate substitutive invoice on POS2 check the substitutive invoice in BO ok check the reprint of the substitutive invoice -> KO there is an error when uploading to azure storage as shown in the description | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2024-09-06 08:41 | azzeddine_meftoh | New Issue | ||||||||||
2024-09-06 08:41 | azzeddine_meftoh | Assigned To | => Triage Platform Base | |||||||||
2024-09-06 08:41 | azzeddine_meftoh | Triggers an Emergency Pack | => No | |||||||||
2024-09-06 09:17 | aferraz | Assigned To | Triage Platform Base => ifernandez | |||||||||
2024-09-06 09:29 | martinsdan | Issue Monitored: martinsdan | ||||||||||
2024-09-06 09:47 | frank_gonzalez | Note Added: 0168851 | ||||||||||
2024-09-06 11:00 | hgbot | Note Added: 0168853 | ||||||||||
2024-09-06 11:35 | hgbot | Note Added: 0168858 | ||||||||||
2024-09-06 11:40 | hgbot | Note Added: 0168859 | ||||||||||
2024-09-06 12:07 | caristu | Relationship added | related to 0056228 | |||||||||
2024-09-06 13:14 | hgbot | Note Added: 0168862 | ||||||||||
2024-09-06 13:14 | hgbot | Note Added: 0168863 | ||||||||||
2024-09-06 13:16 | hgbot | Resolution | open => fixed | |||||||||
2024-09-06 13:16 | hgbot | Status | new => closed | |||||||||
2024-09-06 13:16 | hgbot | Note Added: 0168864 | ||||||||||
2024-09-06 13:16 | hgbot | Note Added: 0168865 | ||||||||||
2024-09-06 13:17 | hgbot | Note Added: 0168866 | ||||||||||
2024-09-06 13:17 | hgbot | Note Added: 0168867 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|