---
id: change/bcapps/11156
type: change
title: "#11156 Allow controlled changes to item tracking codes"
summary: Item tracking codes can now be changed after posting history exists, provided the item is in a safe state with zero inventory and no open ledger entries.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - table item
  - table purchase line
  - codeunit correct posted purch. invoice
  - table purch. cr. memo line
  - table sales line
  - codeunit correct posted sales invoice
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-12-06T00:54:11.813Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d6b9f615eeb5f238df14620a3625cb45304aad09
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11156
    title: "microsoft/BCApps#11156: Allow controlled changes to item tracking codes"
    date: "2026-12-03"
    commit: d6b9f615eeb5f238df14620a3625cb45304aad09
    t: null
    quote: Changing between supported item tracking configurations when inventory is zero and no open item ledger entries exist.
links:
  learn: []
  objects:
    - object/table/27
    - object/table/39
    - object/codeunit/1313
    - object/table/125
    - object/table/37
    - object/codeunit/1303
    - object/table/115
    - object/codeunit/80
    - object/table/32
    - object/codeunit/6620
    - object/table/5902
    - object/codeunit/22
    - object/table/336
    - object/codeunit/900
    - object/entitlement/d365-business-central-infrastructure-baseapp
    - object/entitlement/delegated-admin-agent-partner-baseapp
    - object/entitlement/delegated-bc-admin-agent-partner-baseapp
    - object/entitlement/dynamics-365-admin-partner-baseapp
    - object/entitlement/dynamics-365-administrator-baseapp
    - object/entitlement/dynamics-365-business-central-essentials-baseapp
    - object/entitlement/dynamics-365-business-central-premium-baseapp
    - object/entitlement/internal-administrator-baseapp
    - object/entitlement/internal-bc-administrator-baseapp
    - object/codeunit/1764
    - object/table/6502
    - object/page/6510
    - object/codeunit/6516
    - object/codeunit/5817
    - object/codeunit/99000822
    - object/codeunit/99000843
    - object/permissionset/2914
    - object/permissionset/209
    - object/codeunit/99000834
    - object/codeunit/99000832
    - object/codeunit/5819
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action
      title: Creating and Interacting with an OData V4 Bound Action
      label: possibly related
      why: touches Codeunit 6620 "Copy Document Mgt."
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-snapshot-debugging
      title: Snapshot debugging
      label: possibly related
      why: touches Codeunit 80 "Sales-Post"
      by: code
number: 11156
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11156
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-03T17:07:19Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 144
  additions: 8898
  deletions: 564
  al: 124
apps:
  - Base Application
objects_touched:
  - key: table/27
    page: table/27
    type: table
    id: 27
    name: Item
    app: Base Application
    status: modified
  - key: table/39
    page: table/39
    type: table
    id: 39
    name: Purchase Line
    app: Base Application
    status: modified
  - key: codeunit/1313
    page: codeunit/1313
    type: codeunit
    id: 1313
    name: Correct Posted Purch. Invoice
    app: Base Application
    status: modified
  - key: table/125
    page: table/125
    type: table
    id: 125
    name: Purch. Cr. Memo Line
    app: Base Application
    status: modified
  - key: table/37
    page: table/37
    type: table
    id: 37
    name: Sales Line
    app: Base Application
    status: modified
  - key: codeunit/1303
    page: codeunit/1303
    type: codeunit
    id: 1303
    name: Correct Posted Sales Invoice
    app: Base Application
    status: modified
  - key: table/115
    page: table/115
    type: table
    id: 115
    name: Sales Cr.Memo Line
    app: Base Application
    status: modified
  - key: codeunit/80
    page: codeunit/80
    type: codeunit
    id: 80
    name: Sales-Post
    app: Base Application
    status: modified
  - key: table/32
    page: table/32
    type: table
    id: 32
    name: Item Ledger Entry
    app: Base Application
    status: modified
  - key: codeunit/6620
    page: codeunit/6620
    type: codeunit
    id: 6620
    name: Copy Document Mgt.
    app: Base Application
    status: modified
  - key: table/5902
    page: table/5902
    type: table
    id: 5902
    name: Service Line
    app: Base Application
    status: modified
  - key: codeunit/22
    page: codeunit/22
    type: codeunit
    id: 22
    name: Item Jnl.-Post Line
    app: Base Application
    status: modified
  - key: table/336
    page: table/336
    type: table
    id: 336
    name: Tracking Specification
    app: Base Application
    status: modified
  - key: codeunit/900
    page: codeunit/900
    type: codeunit
    id: 900
    name: Assembly-Post
    app: Base Application
    status: modified
  - key: entitlement/d365 business central infrastructure baseapp
    page: entitlement/d365-business-central-infrastructure-baseapp
    type: entitlement
    id: null
    name: D365 Business Central Infrastructure BaseApp
    app: Base Application
    status: modified
  - key: entitlement/delegated admin agent - partner baseapp
    page: entitlement/delegated-admin-agent-partner-baseapp
    type: entitlement
    id: null
    name: Delegated Admin agent - Partner BaseApp
    app: Base Application
    status: modified
  - key: entitlement/delegated bc admin agent - partner baseapp
    page: entitlement/delegated-bc-admin-agent-partner-baseapp
    type: entitlement
    id: null
    name: Delegated BC Admin agent - Partner BaseApp
    app: Base Application
    status: modified
  - key: entitlement/dynamics 365 admin - partner baseapp
    page: entitlement/dynamics-365-admin-partner-baseapp
    type: entitlement
    id: null
    name: Dynamics 365 Admin - Partner BaseApp
    app: Base Application
    status: modified
  - key: entitlement/dynamics 365 administrator baseapp
    page: entitlement/dynamics-365-administrator-baseapp
    type: entitlement
    id: null
    name: Dynamics 365 Administrator BaseApp
    app: Base Application
    status: modified
  - key: entitlement/dynamics 365 business central essentials baseapp
    page: entitlement/dynamics-365-business-central-essentials-baseapp
    type: entitlement
    id: null
    name: Dynamics 365 Business Central Essentials BaseApp
    app: Base Application
    status: modified
  - key: entitlement/dynamics 365 business central premium baseapp
    page: entitlement/dynamics-365-business-central-premium-baseapp
    type: entitlement
    id: null
    name: Dynamics 365 Business Central Premium BaseApp
    app: Base Application
    status: modified
  - key: entitlement/internal administrator baseapp
    page: entitlement/internal-administrator-baseapp
    type: entitlement
    id: null
    name: Internal Administrator BaseApp
    app: Base Application
    status: modified
  - key: entitlement/internal bc administrator baseapp
    page: entitlement/internal-bc-administrator-baseapp
    type: entitlement
    id: null
    name: Internal BC Administrator BaseApp
    app: Base Application
    status: modified
  - key: codeunit/1764
    page: codeunit/1764
    type: codeunit
    id: 1764
    name: Inventory-Data Classification
    app: Base Application
    status: modified
  - key: table/6502
    page: table/6502
    type: table
    id: 6502
    name: Item Tracking Code
    app: Base Application
    status: modified
  - key: page/6510
    page: page/6510
    type: page
    id: 6510
    name: Item Tracking Lines
    app: Base Application
    status: modified
  - key: codeunit/6516
    page: codeunit/6516
    type: codeunit
    id: 6516
    name: Package Management
    app: Base Application
    status: modified
  - key: codeunit/5817
    page: codeunit/5817
    type: codeunit
    id: 5817
    name: Undo Posting Management
    app: Base Application
    status: modified
  - key: codeunit/99000822
    page: codeunit/99000822
    type: codeunit
    id: 99000822
    name: Mfg. Item Jnl.-Post Line
    app: Base Application
    status: modified
  - key: codeunit/99000843
    page: codeunit/99000843
    type: codeunit
    id: 99000843
    name: Undo Prod. Posting Mgmt.
    app: Base Application
    status: modified
  - key: permissionset/2914
    page: permissionset/2914
    type: permissionset
    id: 2914
    name: Administrator
    app: Base Application
    status: modified
  - key: permissionset/209
    page: permissionset/209
    type: permissionset
    id: 209
    name: D365 Basic - Read
    app: Base Application
    status: modified
  - key: codeunit/99000834
    page: codeunit/99000834
    type: codeunit
    id: 99000834
    name: Purch. Line-Reserve
    app: Base Application
    status: modified
  - key: codeunit/99000832
    page: codeunit/99000832
    type: codeunit
    id: 99000832
    name: Sales Line-Reserve
    app: Base Application
    status: modified
  - key: codeunit/5819
    page: codeunit/5819
    type: codeunit
    id: 5819
    name: Undo Service Consumption Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Purchases/History/CorrectPostedPurchInvoice.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Sales/History/CorrectPostedSalesInvoice.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeLog.Page.al
    status: added
    reason: not-in-snapshot
  - path: src/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeLog.Table.al
    status: added
    reason: not-in-snapshot
  - path: src/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeMgt.Codeunit.al
    status: added
    reason: not-in-snapshot
  - path: src/Layers/W1/BaseApp/Permissions/ITEMTRACKINGCHANGE.PermissionSet.al
    status: added
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 435436
systems:
  - sales
  - purchasing
  - inventory
  - administration
  - platform
  - service
  - assembly
  - manufacturing
quote: Changing between supported item tracking configurations when inventory is zero and no open item ledger entries exist.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #11156 Allow controlled changes to item tracking codes

> Item tracking codes can now be changed after posting history exists, provided the item is in a safe state with zero inventory and no open ledger entries.

[Pull request](https://github.com/microsoft/BCApps/pull/11156) · merged into `main` (BC30) on 2026-12-03 by AleksandricMarko · 144 files (+8898 -564), 124 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Item Tracking Code can be changed on items with posting history when inventory is zero and no open item ledger entries exist
- Change stays blocked by risky activity such as open entries, reservations, active tracking, partial receipts or shipments, and related journal or warehouse activity
- Later returns, undo operations, corrections and applications follow the tracking rules in force when the original entries were posted
- Previous and new tracking codes are recorded in an immutable change history
- Requires a dedicated permission and asks for confirmation when advanced validation applies
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 27 "Item"](../../objects/table/27.md), Base Application: modified
- [Table 39 "Purchase Line"](../../objects/table/39.md), Base Application: modified
- [Codeunit 1313 "Correct Posted Purch. Invoice"](../../objects/codeunit/1313.md), Base Application: modified
- [Table 125 "Purch. Cr. Memo Line"](../../objects/table/125.md), Base Application: modified
- [Table 37 "Sales Line"](../../objects/table/37.md), Base Application: modified
- [Codeunit 1303 "Correct Posted Sales Invoice"](../../objects/codeunit/1303.md), Base Application: modified
- [Table 115 "Sales Cr.Memo Line"](../../objects/table/115.md), Base Application: modified
- [Codeunit 80 "Sales-Post"](../../objects/codeunit/80.md), Base Application: modified
- [Table 32 "Item Ledger Entry"](../../objects/table/32.md), Base Application: modified
- [Codeunit 6620 "Copy Document Mgt."](../../objects/codeunit/6620.md), Base Application: modified
- [Table 5902 "Service Line"](../../objects/table/5902.md), Base Application: modified
- [Codeunit 22 "Item Jnl.-Post Line"](../../objects/codeunit/22.md), Base Application: modified
- [Table 336 "Tracking Specification"](../../objects/table/336.md), Base Application: modified
- [Codeunit 900 "Assembly-Post"](../../objects/codeunit/900.md), Base Application: modified
- [Entitlement "D365 Business Central Infrastructure BaseApp"](../../objects/entitlement/d365-business-central-infrastructure-baseapp.md), Base Application: modified
- [Entitlement "Delegated Admin agent - Partner BaseApp"](../../objects/entitlement/delegated-admin-agent-partner-baseapp.md), Base Application: modified
- [Entitlement "Delegated BC Admin agent - Partner BaseApp"](../../objects/entitlement/delegated-bc-admin-agent-partner-baseapp.md), Base Application: modified
- [Entitlement "Dynamics 365 Admin - Partner BaseApp"](../../objects/entitlement/dynamics-365-admin-partner-baseapp.md), Base Application: modified
- [Entitlement "Dynamics 365 Administrator BaseApp"](../../objects/entitlement/dynamics-365-administrator-baseapp.md), Base Application: modified
- [Entitlement "Dynamics 365 Business Central Essentials BaseApp"](../../objects/entitlement/dynamics-365-business-central-essentials-baseapp.md), Base Application: modified
- [Entitlement "Dynamics 365 Business Central Premium BaseApp"](../../objects/entitlement/dynamics-365-business-central-premium-baseapp.md), Base Application: modified
- [Entitlement "Internal Administrator BaseApp"](../../objects/entitlement/internal-administrator-baseapp.md), Base Application: modified
- [Entitlement "Internal BC Administrator BaseApp"](../../objects/entitlement/internal-bc-administrator-baseapp.md), Base Application: modified
- [Codeunit 1764 "Inventory-Data Classification"](../../objects/codeunit/1764.md), Base Application: modified
- [Table 6502 "Item Tracking Code"](../../objects/table/6502.md), Base Application: modified
- [Page 6510 "Item Tracking Lines"](../../objects/page/6510.md), Base Application: modified
- [Codeunit 6516 "Package Management"](../../objects/codeunit/6516.md), Base Application: modified
- [Codeunit 5817 "Undo Posting Management"](../../objects/codeunit/5817.md), Base Application: modified
- [Codeunit 99000822 "Mfg. Item Jnl.-Post Line"](../../objects/codeunit/99000822.md), Base Application: modified
- [Codeunit 99000843 "Undo Prod. Posting Mgmt."](../../objects/codeunit/99000843.md), Base Application: modified
- [Permission set 2914 "Administrator"](../../objects/permissionset/2914.md), Base Application: modified
- [Permission set 209 "D365 Basic - Read"](../../objects/permissionset/209.md), Base Application: modified
- [Codeunit 99000834 "Purch. Line-Reserve"](../../objects/codeunit/99000834.md), Base Application: modified
- [Codeunit 99000832 "Sales Line-Reserve"](../../objects/codeunit/99000832.md), Base Application: modified
- [Codeunit 5819 "Undo Service Consumption Line"](../../objects/codeunit/5819.md), Base Application: modified
- `src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al`: modified, not in the BC30 snapshot
- `src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Purchases/History/CorrectPostedPurchInvoice.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Sales/History/CorrectPostedSalesInvoice.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeLog.Page.al`: added, not in the BC30 snapshot yet
- `src/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeLog.Table.al`: added, not in the BC30 snapshot yet
- `src/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeMgt.Codeunit.al`: added, not in the BC30 snapshot yet
- `src/Layers/W1/BaseApp/Permissions/ITEMTRACKINGCHANGE.PermissionSet.al`: added, not in the BC30 snapshot yet

## Context

- Work items: AB#435436
- Labels: Team: SCM
- Systems: sales, purchasing, inventory, administration, platform, service, assembly, manufacturing
- From the description: "Changing between supported item tracking configurations when inventory is zero and no open item ledger entries exist."

## Possibly related

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

- [Creating and Interacting with an OData V4 Bound Action](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action) — possibly related: touches Codeunit 6620 "Copy Document Mgt."
- [Snapshot debugging](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-snapshot-debugging) — possibly related: touches Codeunit 80 "Sales-Post"

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