Skip to content

[18.0][FIX] edi_storage_oca: raise error if file is missing when performing receive#274

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-edi_storage_oca-raise_if_missing
May 27, 2026
Merged

[18.0][FIX] edi_storage_oca: raise error if file is missing when performing receive#274
OCA-git-bot merged 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-edi_storage_oca-raise_if_missing

Conversation

@ArnauCForgeFlow

Copy link
Copy Markdown
Contributor

When the FTP read fails on receive (connection drop, missing file), the exchange record was wrongly transitioning to "input_received" with an empty file, because "_get_remote_file"" was silently swallowing the error and returning None. Fixed by raising on receive instead, so the record correctly goes to "input_receive_error".

As a side effect, since the record sat in "input_received" with no file, every run of the processing cron tried to process it, failed because the file was missing, and queued a new job. This led to an ever-growing pile of failing queue jobs for the same record.

image

@simahawk

Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-274-by-simahawk-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 79ff406 into OCA:18.0 May 27, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 6b602a1. Thanks a lot for contributing to OCA. ❤️

@LoisRForgeFlow LoisRForgeFlow deleted the 18.0-fix-edi_storage_oca-raise_if_missing branch June 16, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants