---
id: change/bcapps/13739
type: change
title: "#13739 [Master]-Sales/Purchase Price List activation allows Duplicate Lines when the Price List is Inactive."
summary: Activating an inactive sales or purchase price list no longer lets duplicate lines through. The fix is a one-line change in the Price List Management codeunit.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit price list management
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-12T00:55:49.544Z"
  flags: []
generated:
  at: "2026-11-30T00:15:18.424Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f3c9f728a691830f9e7922d0094a3c68720e8a3e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13739
    title: "microsoft/BCApps#13739: [Master]-Sales/Purchase Price List activation allows Duplicate Lines when the Price List is Inactive."
    date: "2026-11-10"
    commit: f3c9f728a691830f9e7922d0094a3c68720e8a3e
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/7017
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/across-prices-and-discounts
      title: Set up prices and discounts
      label: possibly related
      why: Documents setting up sales and purchase prices and price list activation with duplicate line handling.
      by: model
number: 13739
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13739
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-10T00:42:08Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 61
  deletions: 1
  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:
  - 658104
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13739 [Master]-Sales/Purchase Price List activation allows Duplicate Lines when the Price List is Inactive.

> Activating an inactive sales or purchase price list no longer lets duplicate lines through. The fix is a one-line change in the Price List Management codeunit.

[Pull request](https://github.com/microsoft/BCApps/pull/13739) · merged into `main` (BC30) on 2026-11-10 by neeleshsinghal · 2 files (+61 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Price list activation no longer allows duplicate lines when the list was inactive
- One-line change in codeunit 7017 Price List Management
- New unit test added in Price List Header UT
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

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

## Possibly related

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

- [Set up prices and discounts](https://learn.microsoft.com/dynamics365/business-central/across-prices-and-discounts) — possibly related: Documents setting up sales and purchase prices and price list activation with duplicate line handling. (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).
