---
id: change/bcapps/9933
type: change
title: "#9933 [MAIN]-Fix-Bug 644909 Cant modify Item Template after Item deletion"
summary: Item Template validation no longer fails with warehouse entry errors when modifying templates after item deletion. The fix prevents warehouse entry checks when validating temporary blank-numbered Item records.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table item
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:33.228Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 015bdf011be96dc34c75af187e783fe08f05e04d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9933
    title: "microsoft/BCApps#9933: [MAIN]-Fix-Bug 644909 Cant modify Item Template after Item deletion"
    date: "2026-08-11"
    commit: 015bdf011be96dc34c75af187e783fe08f05e04d
    t: null
    quote: Modifying an Item Template after deleting an item could fail with a warehouse-entry validation error.
links:
  learn: []
  objects:
    - object/table/27
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9933
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9933
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-11T15:57:35Z"
author: v-praghav
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 10
  additions: 152
  deletions: 4
  al: 8
apps:
  - Base Application
objects_touched:
  - key: table/27
    page: table/27
    type: table
    id: 27
    name: Item
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 644909
systems:
  - inventory
quote: Modifying an Item Template after deleting an item could fail with a warehouse-entry validation error.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9933 [MAIN]-Fix-Bug 644909 Cant modify Item Template after Item deletion

> Item Template validation no longer fails with warehouse entry errors when modifying templates after item deletion. The fix prevents warehouse entry checks when validating temporary blank-numbered Item records.

[Pull request](https://github.com/microsoft/BCApps/pull/9933) · merged into `main` (BC30) on 2026-08-11 by v-praghav · 10 files (+152 -4), 8 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Item.TestNoWhseEntriesExist now exits immediately when Item No. is blank
- Resolves warehouse-entry validation errors when modifying an Item Template after deleting an item
- Fix applied to the Item table in the W1, APAC, CH, ES, GB, IT, NA and RU layers
- Regression tests added in the W1 and CZ UTItemTable test codeunits
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 27 "Item"](../../objects/table/27.md), Base Application: modified

## Context

- Work items: AB#644909
- Labels: Team: SCM
- Systems: inventory
- From the description: "Modifying an Item Template after deleting an item could fail with a warehouse-entry validation error."

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