---
id: change/bcapps/11154
type: change
title: "#11154 Fix AL0254 compile error in Stock Register for Job Work report"
summary: Stock Register for Job Work report in GST Subcontracting (IN) now compiles by suppressing AL0254 warnings on sort fields from a table extension that lack a covering key.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - report stock register for job work
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:51.095Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0b5054d2b3b2496294e213411bdd742a81c0d7f8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11154
    title: "microsoft/BCApps#11154: Fix AL0254 compile error in Stock Register for Job Work report"
    date: "2026-09-08"
    commit: 0b5054d2b3b2496294e213411bdd742a81c0d7f8
    t: null
    quote: Recent AL compilers tightened AL0254 to also validate sort fields introduced by a table extension.
links:
  learn: []
  objects:
    - object/report/18468-in
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11154
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11154
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-08T12:39:04Z"
author: mazhelez
author_type: User
community_contribution: false
labels:
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: fix
behavior_change: false
breaking: false
files:
  count: 1
  additions: 2
  deletions: 0
  al: 1
apps:
  - INGST
objects_touched:
  - key: report/18468
    page: report/18468-in
    type: report
    id: 18468
    name: Stock Register for Job Work
    app: INGST
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 649216
systems:
  - finance
quote: Recent AL compilers tightened AL0254 to also validate sort fields introduced by a table extension.
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #11154 Fix AL0254 compile error in Stock Register for Job Work report

> Stock Register for Job Work report in GST Subcontracting (IN) now compiles by suppressing AL0254 warnings on sort fields from a table extension that lack a covering key.

[Pull request](https://github.com/microsoft/BCApps/pull/11154) · merged into `main` (BC30) on 2026-09-08 by mazhelez · 1 file (+2 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- AL0254 compiler rules tightened to validate sort fields from table extensions, not just base tables
- Report failed to compile with two AL0254 errors on Prod. Order No. and Prod. Order Line No. sorting
- Fix uses scoped pragma to suppress AL0254 warnings without adding a key to the shared base table
- Pragma pattern matches existing suppression already in the same report
- No functional or schema changes; compile-only fix with no runtime behavior impact

## AL objects touched

- [Report 18468 "Stock Register for Job Work"](../../objects/report/18468-in.md), INGST (IN layer): modified

## Context

- Work items: AB#649216
- Labels: Ownership: Needs Review, Team: Other
- Systems: finance
- From the description: "Recent AL compilers tightened AL0254 to also validate sort fields introduced by a table extension."

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