---
id: change/bcapps/9346
type: change
title: "#9346 [master]-Cannot delete Project Planning Line due to incorrect reservation entries"
summary: Fixes a bug where a Project Planning Line could not be deleted because incorrect reservation entries existed. The fix is in the Inventory Profile Offsetting codeunit, which is used for planning, and a test was added for the scenario.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit inventory profile offsetting
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:08.687Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3c6f23b8b0c07d5f66887acd26e131f9fb44f13a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9346
    title: "microsoft/BCApps#9346: [master]-Cannot delete Project Planning Line due to incorrect reservation entries"
    date: "2026-07-28"
    commit: 3c6f23b8b0c07d5f66887acd26e131f9fb44f13a
    t: null
    quote: Cannot delete Project Planning Line due to incorrect reservation entries
links:
  learn: []
  objects:
    - object/codeunit/99000854
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9346
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9346
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-28T12:54:39Z"
author: MSNehaNawal
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: 123
  deletions: 2
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/99000854
    page: codeunit/99000854
    type: codeunit
    id: 99000854
    name: Inventory Profile Offsetting
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 642150
systems:
  - inventory
quote: Cannot delete Project Planning Line due to incorrect reservation entries
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9346 [master]-Cannot delete Project Planning Line due to incorrect reservation entries

> Fixes a bug where a Project Planning Line could not be deleted because incorrect reservation entries existed. The fix is in the Inventory Profile Offsetting codeunit, which is used for planning, and a test was added for the scenario.

[Pull request](https://github.com/microsoft/BCApps/pull/9346) · merged into `main` (BC30) on 2026-07-28 by MSNehaNawal (community contribution) · 2 files (+123 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Changes reservation handling in codeunit Inventory Profile Offsetting
- Addresses incorrect reservation entries that blocked deleting project planning lines
- Adds a regression test to the SCM planning tests
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 99000854 "Inventory Profile Offsetting"](../../objects/codeunit/99000854.md), Base Application: modified

## Context

- Work items: AB#642150
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: inventory
- From the description: "Cannot delete Project Planning Line due to incorrect reservation entries"

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