# BRN_XPN_FAIL: Branch settlement carry-forward writeoff failed

- Module: BRN. Branch settlement (franchise mode)
- Severity: Critical
- Impact: Operators. Organisation staff should take a look. Customers are not affected.
- Retry: Manual. Safe for an operator to retry the action.
- Reference: https://docs.bizkithub.com/en/system-codes/BRN_XPN_FAIL

## What happened

The automatic "Vyrovnání z účetního období" writeoff that carries an "org owes branch" balance into the next settlement cycle could not be booked. The parent settlement order is unaffected; manual intervention needed to persist the carry-forward.

## Likely causes

- Booking the automatic carry-forward writeoff for a balance the organisation owes a branch failed.

## How to resolve

1. Open the settlement order in admin and confirm the balance owed to the branch.
2. Create the carry-forward expense manually in Expenses so the balance appears in the next settlement.
3. Contact support@bizkithub.com if the failure repeats.

## Related codes

- BRN_SNAP_FAIL: Branch settlement snapshot write failed
- BRN_RPT_FAIL: Branch settlement report attach failed
- BRN_NTF_FAIL: Branch settlement notification failed
