---
id: change/bcapps/9747
type: change
title: "#9747 [Subcontracting] Bug 641607: Fix misleading error message when disabling Legacy Subcontracting with open WIP purchase orders"
summary: Fixed the error message when disabling Legacy Subcontracting to correctly state that only purchase orders with WIP Items block the operation, not all subcontracting purchase orders.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit legacy subc. feature handler
system: manufacturing
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: 7adc1b3638a7cf4c1e82e522f70534600fe77b9a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9747
    title: "microsoft/BCApps#9747: [Subcontracting] Bug 641607: Fix misleading error message when disabling Legacy Subcontracting with open WIP purchase orders"
    date: "2026-07-28"
    commit: 7adc1b3638a7cf4c1e82e522f70534600fe77b9a
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/99008501-it
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9747
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9747
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-28T10:07:25Z"
author: ChethanT
author_type: User
community_contribution: false
labels:
  - Subcontracting
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 51
  deletions: 1
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/99008501
    page: codeunit/99008501-it
    type: codeunit
    id: 99008501
    name: Legacy Subc. Feature Handler
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641607
systems:
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9747 [Subcontracting] Bug 641607: Fix misleading error message when disabling Legacy Subcontracting with open WIP purchase orders

> Fixed the error message when disabling Legacy Subcontracting to correctly state that only purchase orders with WIP Items block the operation, not all subcontracting purchase orders.

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

## What changed

- Error message now accurately reflects the actual filter condition that checks only WIP Items
- Wording aligned with the sibling transfer order error message for consistency
- Added test scenario to verify the corrected error message wording
- No changes to the underlying business logic or filtering condition
- Ensures users see accurate messaging about what prevents disabling Legacy Subcontracting
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 99008501 "Legacy Subc. Feature Handler"](../../objects/codeunit/99008501-it.md), Base Application (IT layer): modified

## Context

- Work items: AB#641607
- Labels: Subcontracting, Team: SCM
- Systems: manufacturing

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