---
id: change/bcapps/9071
type: change
title: '#9071 Merged from [28.x]The transaction cannot be completed because it will cause inconsistencies in the G/L Entry table"'
summary: Fixes the posting error 'The transaction cannot be completed because it will cause inconsistencies in the G/L Entry table' in codeunit Gen. Jnl.-Post Line. The fix is applied across the W1 layer and several localization layers, with new tests in the ERM Source Currency test suites.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gen. jnl.-post line
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:13:04.516Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b477d1fe9c918294f5d58b5738332a29dfbed6ea
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9071
    title: 'microsoft/BCApps#9071: Merged from [28.x]The transaction cannot be completed because it will cause inconsistencies in the G/L Entry table"'
    date: "2026-07-13"
    commit: b477d1fe9c918294f5d58b5738332a29dfbed6ea
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/12
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9071
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9071
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-13T11:31:45Z"
author: AndersLarsenMicrosoft
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 16
  additions: 429
  deletions: 14
  al: 11
apps:
  - Base Application
objects_touched:
  - key: codeunit/12
    page: codeunit/12
    type: codeunit
    id: 12
    name: Gen. Jnl.-Post Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 638132
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9071 Merged from [28.x]The transaction cannot be completed because it will cause inconsistencies in the G/L Entry table"

> Fixes the posting error 'The transaction cannot be completed because it will cause inconsistencies in the G/L Entry table' in codeunit Gen. Jnl.-Post Line. The fix is applied across the W1 layer and several localization layers, with new tests in the ERM Source Currency test suites.

[Pull request](https://github.com/microsoft/BCApps/pull/9071) · merged into `main` (BC30) on 2026-07-13 by AndersLarsenMicrosoft · 16 files (+429 -14), 11 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Small fix in Gen. Jnl.-Post Line to avoid the G/L Entry inconsistency error
- Applied consistently to the APAC, BE, CH, ES, FI, FR, IT, NA, NO, RU and W1 layers
- New tests added to the ERM Source Currency codeunit in the CZ, ES, IT and W1 layers
- Merged from the 28.x branch; addresses AB#638132
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 12 "Gen. Jnl.-Post Line"](../../objects/codeunit/12.md), Base Application: modified

## Context

- Work items: AB#638132
- Labels: Team: Finance
- Systems: finance

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).
