---
id: change/bcapps/14240
type: change
title: '#14240 [Main]-"Cannot match item tracking" when partially posting an Inventory Pick for lot-tracked items with Strict Expiration Posting enabled'
summary: Fixed an error that occurred when partially posting an Inventory Pick for lot-tracked items with Strict Expiration Posting enabled. The fix filters item tracking validation to only check pick lines with quantities being posted.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit item tracking management
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:58.447Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d078d15c63bba88b1853867d21616d54e2ef575d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14240
    title: 'microsoft/BCApps#14240: [Main]-"Cannot match item tracking" when partially posting an Inventory Pick for lot-tracked items with Strict Expiration Posting enabled'
    date: "2026-11-24"
    commit: d078d15c63bba88b1853867d21616d54e2ef575d
    t: null
    quote: With Strict Expiration Posting, Create Invt. Pick splits the pick into one line per lot.
links:
  learn: []
  objects:
    - object/codeunit/6500
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/warehouse-picking-by-fefo
      title: How to enable picking by FEFO
      label: possibly related
      why: Documents FEFO picking for lot-tracked items with expiration dates during inventory picks.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-how-setup-item-tracking
      title: Set up item tracking with serial, lot, and package numbers
      label: possibly related
      why: Documents item tracking setup with lot numbers and expiration tracking for warehouse operations.
      by: model
number: 14240
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14240
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-24T13:28:05Z"
author: DhavalMore88
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 82
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/6500
    page: codeunit/6500
    type: codeunit
    id: 6500
    name: Item Tracking Management
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659774
systems:
  - inventory
quote: With Strict Expiration Posting, Create Invt. Pick splits the pick into one line per lot.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14240 [Main]-"Cannot match item tracking" when partially posting an Inventory Pick for lot-tracked items with Strict Expiration Posting enabled

> Fixed an error that occurred when partially posting an Inventory Pick for lot-tracked items with Strict Expiration Posting enabled. The fix filters item tracking validation to only check pick lines with quantities being posted.

[Pull request](https://github.com/microsoft/BCApps/pull/14240) · merged into `main` (BC30) on 2026-11-24 by DhavalMore88 (community contribution) · 2 files (+82 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Partial posting of Inventory Picks split by lot now works correctly when Strict Expiration Posting is enabled
- Added filter to validate only pick lines with non-zero quantities to handle
- Preserves existing lot-mismatch validation for handled lines
- Added regression test for the scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6500 "Item Tracking Management"](../../objects/codeunit/6500.md), Base Application: modified

## Context

- Work items: AB#659774
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: inventory
- From the description: "With Strict Expiration Posting, Create Invt. Pick splits the pick into one line per lot."

## Possibly related

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

- [How to enable picking by FEFO](https://learn.microsoft.com/dynamics365/business-central/warehouse-picking-by-fefo) — possibly related: Documents FEFO picking for lot-tracked items with expiration dates during inventory picks. (model-linked)
- [Set up item tracking with serial, lot, and package numbers](https://learn.microsoft.com/dynamics365/business-central/inventory-how-setup-item-tracking) — possibly related: Documents item tracking setup with lot numbers and expiration tracking for warehouse operations. (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).
