---
id: change/bcapps/13259
type: change
title: "#13259 Protect from runtime error if Item Availability looses date filter"
summary: The Sales Order Agent's multi-item availability page now guards against runtime errors when the date filter is missing by checking that the filter exists before comparing shipment dates.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page soa multi items availability
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-01T00:44:15.702Z"
  flags: []
generated:
  at: "2026-11-02T00:19:12.546Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6b536fa9c21a1803cae850335da046c9cc284258
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13259
    title: "microsoft/BCApps#13259: Protect from runtime error if Item Availability looses date filter"
    date: "2026-10-28"
    commit: 6b536fa9c21a1803cae850335da046c9cc284258
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/4410
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-how-availability-overview
      title: Get an availability overview
      label: possibly related
      why: Documents item availability overview by period, location, and related filtering requirements.
      by: model
number: 13259
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13259
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-28T14:40:03Z"
author: VolodySyn
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 6
  deletions: 21
  al: 1
apps:
  - SalesOrderAgent
objects_touched:
  - key: page/4410
    page: page/4410
    type: page
    id: 4410
    name: SOA Multi Items Availability
    app: SalesOrderAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650540
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13259 Protect from runtime error if Item Availability looses date filter

> The Sales Order Agent's multi-item availability page now guards against runtime errors when the date filter is missing by checking that the filter exists before comparing shipment dates.

[Pull request](https://github.com/microsoft/BCApps/pull/13259) · merged into `main` (BC30) on 2026-10-28 by VolodySyn · 1 file (+6 -21), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Prevents runtime error when Date Filter is absent from the SOA Multi Items Availability page
- Checks that Date Filter is nonempty before calling GetRangeMax
- Preserves existing behavior when the date filter is present
- No changes to schema, permissions, or upgrade logic
- Low-risk defensive programming change
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 4410 "SOA Multi Items Availability"](../../objects/page/4410.md), SalesOrderAgent: modified

## Context

- Work items: AB#650540
- Labels: AL: Apps (W1), Team: SCM
- Systems: copilot

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Get an availability overview](https://learn.microsoft.com/dynamics365/business-central/inventory-how-availability-overview) — possibly related: Documents item availability overview by period, location, and related filtering requirements. (model-linked)

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