Problem
When Split Batch Transactions is enabled and Download Batch Transactions is disabled, unresolved batch transactions still abort the entire EBICS import.
In that case camt.054 is never downloaded, so the retry path can never succeed.
Current behavior
In sync_ebics_transactions:
- camt.054 is only fetched if
download_batch_transactions is set.
- Import still proceeds with
batch_xml=None.
- If
split_batch_transactions is on and a batch has no sub-transactions (len(transaction) == 0), UnresolvedBatchTransactionError is raised.
- The request is marked Skipped, the bank is asked to resend (
confirm_download(success=False)), and a warning suggests trying again later.
That assumes camt.054 may appear on a later sync. With download disabled, it never will.
Why this is easy to hit
- Split Batch Transactions defaults to enabled.
- Download Batch Transactions defaults to disabled.
- The two checkboxes are independent; nothing requires download when split is on.
Expected behavior
Either:
- Do not treat missing camt.054 as a transient skip when download is disabled (import the batch as a single transaction / proceed without waiting), or
- Tie the settings together so split cannot leave the sync stuck without download.
Relevant code
banking/ebics/utils.py — sync_ebics_transactions, process_camt_document, UnresolvedBatchTransactionError
- EBICS User fields
split_batch_transactions / download_batch_transactions
Problem
When Split Batch Transactions is enabled and Download Batch Transactions is disabled, unresolved batch transactions still abort the entire EBICS import.
In that case camt.054 is never downloaded, so the retry path can never succeed.
Current behavior
In
sync_ebics_transactions:download_batch_transactionsis set.batch_xml=None.split_batch_transactionsis on and a batch has no sub-transactions (len(transaction) == 0),UnresolvedBatchTransactionErroris raised.confirm_download(success=False)), and a warning suggests trying again later.That assumes camt.054 may appear on a later sync. With download disabled, it never will.
Why this is easy to hit
Expected behavior
Either:
Relevant code
banking/ebics/utils.py—sync_ebics_transactions,process_camt_document,UnresolvedBatchTransactionErrorsplit_batch_transactions/download_batch_transactions