---
id: change/bcapps/11744
type: change
title: "#11744 Fixes #11605 - GetCurrencyCode Error"
summary: The GetCurrencyCode procedure in the CODA Statement table now returns an empty string instead of throwing an error when the bank account is not found.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table coda statement
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-28T10:56:13.846Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8f8c069b4e885f54c83c057abe920fb05d812187
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11744
    title: "microsoft/BCApps#11744: Fixes #11605 - GetCurrencyCode Error"
    date: "2026-10-26"
    commit: 8f8c069b4e885f54c83c057abe920fb05d812187
    t: null
    quote: The GetCurrencyCode() procedure should not throw an error if the Bank Account is not found.
links:
  learn: []
  objects:
    - object/table/2000040-be
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Belgium/coda-bank-statements
      title: Belgian CODA Bank Statements [BE]
      label: possibly related
      why: Documents CODA Statement processing and how CODA statement lines are matched to ledger entries
      by: model
number: 11744
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11744
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-26T16:12:22Z"
author: Warren-BR
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 4
  deletions: 2
  al: 1
apps:
  - Base Application
objects_touched:
  - key: table/2000040
    page: table/2000040-be
    type: table
    id: 2000040
    name: CODA Statement
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 11605
work_items:
  - 653658
systems:
  - finance
quote: The GetCurrencyCode() procedure should not throw an error if the Bank Account is not found.
joined_against:
  major: "30"
  commit: 15385dede95a4f9e7be01be47c684fc9d654a7ce
---

# #11744 Fixes #11605 - GetCurrencyCode Error

> The GetCurrencyCode procedure in the CODA Statement table now returns an empty string instead of throwing an error when the bank account is not found.

[Pull request](https://github.com/microsoft/BCApps/pull/11744) · merged into `main` (BC30) on 2026-10-26 by Warren-BR (community contribution) · 1 file (+4 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- GetCurrencyCode on the CODA Statement table no longer raises an error when the bank account is not found
- It returns an empty string in that case
- The change is in the Belgian (BE) localization layer
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 2000040 "CODA Statement"](../../objects/table/2000040-be.md), Base Application (BE layer): modified

## Context

- Fixes: [#11605 [Bug]: [BE] GetCurrencyCode on Coda Statement throws Error](https://github.com/microsoft/BCApps/issues/11605) (closed)
- Work items: AB#653658
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: finance
- From the description: "The GetCurrencyCode() procedure should not throw an error if the Bank Account is not found."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Belgian CODA Bank Statements \[BE\]](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Belgium/coda-bank-statements) — possibly related: Documents CODA Statement processing and how CODA statement lines are matched to ledger entries (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
