---
id: change/bcapps/9571
type: change
title: "#9571 [Master]-Opening price list from Customer Card is extremely slow on large datasets (~220s) due to AddAllSourceType call"
summary: Opening a price list from the Customer Card is made faster on large datasets, where it took around 220 seconds because of the AddAllSourceType call. The logic in Price List Management is reworked and UI tests are added.
tier: official
language: en
tags:
  - performance
  - main
  - bc30
  - codeunit price list management
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:41.882Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f5c84e3f8463b0a0bac2fd62645911bd71f3a9ce
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9571
    title: "microsoft/BCApps#9571: [Master]-Opening price list from Customer Card is extremely slow on large datasets (~220s) due to AddAllSourceType call"
    date: "2026-07-22"
    commit: f5c84e3f8463b0a0bac2fd62645911bd71f3a9ce
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/7017
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9571
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9571
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-22T13:29:06Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: performance
behavior_change: false
breaking: false
files:
  count: 2
  additions: 199
  deletions: 9
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/7017
    page: codeunit/7017
    type: codeunit
    id: 7017
    name: Price List Management
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641061
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9571 [Master]-Opening price list from Customer Card is extremely slow on large datasets (~220s) due to AddAllSourceType call

> Opening a price list from the Customer Card is made faster on large datasets, where it took around 220 seconds because of the AddAllSourceType call. The logic in Price List Management is reworked and UI tests are added.

[Pull request](https://github.com/microsoft/BCApps/pull/9571) · merged into `main` (BC30) on 2026-07-22 by neeleshsinghal · 2 files (+199 -9), 1 AL · performance · tier official · reviewed (checked by Opus)

## What changed

- Addresses slow opening of price lists from the Customer Card on large datasets (~220s)
- Title attributes the slowness to the AddAllSourceType call
- Changes are in the Price List Management codeunit
- New tests added in the Price Lists UI test codeunit

## AL objects touched

- [Codeunit 7017 "Price List Management"](../../objects/codeunit/7017.md), Base Application: modified

## Context

- Work items: AB#641061
- Labels: Team: SCM
- Systems: development

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