---
id: change/bcapps/11992
type: change
title: "#11992 Fix IRS Forms statement filters for box codes containing parentheses"
summary: IRS Forms statement filters now handle box codes with parentheses correctly by treating form-box identifiers as literal values instead of filter syntax.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table irs 1099 form statement line
  - codeunit irs 1099 upgrade
  - codeunit irs forms data
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:19.023Z"
  flags: []
generated:
  at: "2026-10-09T00:24:51.437Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: fab743ed67bbb459787ec95e1393fbdb3a7e724c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11992
    title: "microsoft/BCApps#11992: Fix IRS Forms statement filters for box codes containing parentheses"
    date: "2026-09-29"
    commit: fab743ed67bbb459787ec95e1393fbdb3a7e724c
    t: null
    quote: Programmatically generated filters should treat the form-box identifier as a literal value rather than filter syntax.
links:
  learn: []
  objects:
    - object/table/10041-us
    - object/codeunit/10058-us
    - object/codeunit/10039-us
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11992
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11992
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-29T14:28:24Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 48
  deletions: 6
  al: 3
apps:
  - IRSForms
objects_touched:
  - key: table/10041
    page: table/10041-us
    type: table
    id: 10041
    name: IRS 1099 Form Statement Line
    app: IRSForms
    status: modified
  - key: codeunit/10058
    page: codeunit/10058-us
    type: codeunit
    id: 10058
    name: IRS 1099 Upgrade
    app: IRSForms
    status: modified
  - key: codeunit/10039
    page: codeunit/10039-us
    type: codeunit
    id: 10039
    name: IRS Forms Data
    app: IRSForms
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12182
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12182
fixes_issues: []
work_items:
  - 651660
systems:
  - finance
quote: Programmatically generated filters should treat the form-box identifier as a literal value rather than filter syntax.
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #11992 Fix IRS Forms statement filters for box codes containing parentheses

> IRS Forms statement filters now handle box codes with parentheses correctly by treating form-box identifiers as literal values instead of filter syntax.

[Pull request](https://github.com/microsoft/BCApps/pull/11992) · merged into `main` (BC30) on 2026-09-29 by ventselartur · 4 files (+48 -6), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added SetFormBoxFilter method to build literal filters using SetRange instead of text interpolation
- Updated upgrade and setup statement creation to use the new setter method
- Preserves existing metadata, insertion behavior, and upgrade guards
- Resolves statement creation and data upgrade failures caused by parentheses in box codes
- Added regression test covering parentheses in form-box codes
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 10041 "IRS 1099 Form Statement Line"](../../objects/table/10041-us.md), IRSForms (US layer): modified
- [Codeunit 10058 "IRS 1099 Upgrade"](../../objects/codeunit/10058-us.md), IRSForms (US layer): modified
- [Codeunit 10039 "IRS Forms Data"](../../objects/codeunit/10039-us.md), IRSForms (US layer): modified

## Also merged into

- [#12182](https://github.com/microsoft/BCApps/pull/12182) into `releases/29.x` on 2026-10-08

## Context

- Work items: AB#651660
- Labels: Team: Finance
- Systems: finance
- From the description: "Programmatically generated filters should treat the form-box identifier as a literal value rather than filter syntax."

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