Repository navigation
Conversation
… receive Backport of 2ef4db3 from 18.0. When reading the pending file failed, _get_remote_file logged the FileNotFoundError or OSError at info level and returned None. The receive step then stored no content but still set the exchange record to "input_received" with "Exchange received successfully"; processing failed later with "Record ID=... has no file to process!" and the original error was lost. The receive component now asks _get_remote_file to raise: a missing file re-raises FileNotFoundError and a storage error is raised as UserError, both swallowable by edi_oca, so the record goes to "input_receive_error" with the reason. OSError is logged as a warning with its message. Other callers keep the previous behaviour (raise_if_missing defaults to False). Assisted-by: Claude Code:claude-opus-5-5
baguenth
force-pushed
the
16.0-fix-edi_storage_oca-receive-storage-error
branch
from
November 9, 2026 13:53
4c8a7be to
ad9fab5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #274 to 16.0.
When reading the pending file fails,
_get_remote_filelogs the error at info level and returnsNone; the receive step then sets the exchange record toinput_receivedwithout content, and the original error is lost.Changes (as in 18.0, adapted to the 16.0 components):
edi.storage.component.receivecalls_get_remote_file(..., raise_if_missing=True): a missing file re-raisesFileNotFoundError, a storageOSErroris raised asUserError, so the record goes toinput_receive_errorwith the reason.OSErroris logged as a warning with its message.raise_if_missingdefaults toFalse).Kept as in 18.0: a failed receive is not retried automatically (the existing retry action resets the record), and exceptions outside the
OSErrorfamily still escape as before.@simahawk @etobella @ArnauCForgeFlow could you have a look?
AI assistance: prepared with Claude Code (port and tests); reviewed and tested by me.