Skip to content

Import skipped forever when split is on but download_batch_transactions is off #421

Description

@barredterra

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:

  1. camt.054 is only fetched if download_batch_transactions is set.
  2. Import still proceeds with batch_xml=None.
  3. If split_batch_transactions is on and a batch has no sub-transactions (len(transaction) == 0), UnresolvedBatchTransactionError is raised.
  4. 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.pysync_ebics_transactions, process_camt_document, UnresolvedBatchTransactionError
  • EBICS User fields split_batch_transactions / download_batch_transactions

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions