---
id: change/bcapps/13206
type: change
title: '#13206 [29x]- "You must assign a serial number for item xxx" when trying to reverse Capacity Ledger Entry'
summary: Fixed an error that occurred when reversing Capacity Ledger Entry for items requiring serial number assignment, allowing these entries to be reversed without the serial number validation error.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit mfg. item jnl.-post line
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-24T01:03:36.869Z"
  flags: []
generated:
  at: "2026-11-28T00:12:53.289Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b0a15298102e32eb955e6bc7a8e83c1ae94aed2c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13206
    title: 'microsoft/BCApps#13206: [29x]- "You must assign a serial number for item xxx" when trying to reverse Capacity Ledger Entry'
    date: "2026-11-23"
    commit: b0a15298102e32eb955e6bc7a8e83c1ae94aed2c
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/99000822
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-how-work-item-tracking
      title: Track items with serial, lot, and package numbers
      label: possibly related
      why: Explains item tracking assignment and how serial numbers are managed in transactions.
      by: model
number: 13206
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13206
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-23T14:29:42Z"
author: DeepsShukla
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 163
  deletions: 2
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/99000822
    page: codeunit/99000822
    type: codeunit
    id: 99000822
    name: Mfg. Item Jnl.-Post Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 656545
systems:
  - inventory
quote: null
joined_against:
  major: "29"
  commit: 6a9588a817c12a5d35d3e6c4ad40e29ecca88acf
---

# #13206 [29x]- "You must assign a serial number for item xxx" when trying to reverse Capacity Ledger Entry

> Fixed an error that occurred when reversing Capacity Ledger Entry for items requiring serial number assignment, allowing these entries to be reversed without the serial number validation error.

[Pull request](https://github.com/microsoft/BCApps/pull/13206) · merged into `releases/29.x` (BC29) on 2026-11-23 by DeepsShukla · 3 files (+163 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes the 'You must assign a serial number' error when reversing a capacity ledger entry
- Change made in Mfg. Item Jnl.-Post Line posting logic
- Tests added to SCM Production Order III in W1 and IT
- Backported to the 29.x release branch
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#656545
- Labels: Team: SCM
- Systems: inventory

## Possibly related

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

- [Track items with serial, lot, and package numbers](https://learn.microsoft.com/dynamics365/business-central/inventory-how-work-item-tracking) — possibly related: Explains item tracking assignment and how serial numbers are managed in transactions. (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).
