---
id: change/bcapps/12187
type: change
title: "#12187 Restore parent table relations for Comment Line configuration imports"
summary: Restored twelve conditional table relations for Comment Line records during configuration package imports, enabling validation of parent references for G/L Account, Customer, Vendor, Item, Resource, Project, and other parent table types.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table merge duplicates buffer
  - tableextension comment line relations
  - codeunit config. package management
system: crm
review:
  state: reviewed
  by: opus
  at: "2026-10-17T01:12:15.147Z"
  flags: []
generated:
  at: "2026-11-24T00:13:35.655Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ae337e48e26060c896c742fa3bec9bd9a273e607
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12187
    title: "microsoft/BCApps#12187: Restore parent table relations for Comment Line configuration imports"
    date: "2026-10-12"
    commit: ae337e48e26060c896c742fa3bec9bd9a273e607
    t: null
    quote: Restore the twelve W1 conditional table relations removed during the Comment Line Table Name enum conversion
links:
  learn: []
  objects:
    - object/table/64
    - object/tableextension/97
    - object/codeunit/8611
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/SRB/setup/import
      title: Import subscription contracts and contract lines
      label: possibly related
      why: Configuration package imports with comment line relations for Merge Duplicates buffer.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/sales-how-merge-duplicate-records
      title: Merge Duplicate Customers, Vendors, or Contacts
      label: possibly related
      why: Merge Duplicates feature uses configuration imports for Comment Line relations restoration.
      by: model
number: 12187
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12187
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-12T09:01:55Z"
author: gggdttt
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 5
  additions: 711
  deletions: 4
  al: 3
apps:
  - Base Application
objects_touched:
  - key: table/64
    page: table/64
    type: table
    id: 64
    name: Merge Duplicates Buffer
    app: Base Application
    status: modified
  - key: tableextension/97
    page: tableextension/97
    type: tableextension
    id: 97
    name: Comment Line Relations
    app: Base Application
    status: added
  - key: codeunit/8611
    page: codeunit/8611
    type: codeunit
    id: 8611
    name: Config. Package Management
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13047
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13047
fixes_issues: []
work_items:
  - 651132
systems:
  - crm
  - development
  - platform
quote: Restore the twelve W1 conditional table relations removed during the Comment Line Table Name enum conversion
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #12187 Restore parent table relations for Comment Line configuration imports

> Restored twelve conditional table relations for Comment Line records during configuration package imports, enabling validation of parent references for G/L Account, Customer, Vendor, Item, Resource, Project, and other parent table types.

[Pull request](https://github.com/microsoft/BCApps/pull/12187) · merged into `main` (BC30) on 2026-10-12 by gggdttt · 5 files (+711 -4), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- New table extension with twelve conditional table relations restores Comment Line parent validation functionality
- Relations preserve historical conditions and order for W1 Comment Line parents
- Configuration package management updated to resolve parent references using Table Name enum and relation metadata
- Comment/parent order guard and package-order validation retained; Customer/Vendor merges exclude Comment Line from generic conflict discovery
- Extensive test coverage added for same-package validation, wrong-parent-type detection, and merge scenarios across all parent types
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 64 "Merge Duplicates Buffer"](../../objects/table/64.md), Base Application: modified
- [Table extension 97 "Comment Line Relations"](../../objects/tableextension/97.md), Base Application: added
- [Codeunit 8611 "Config. Package Management"](../../objects/codeunit/8611.md), Base Application: modified

## Also merged into

- [#13047](https://github.com/microsoft/BCApps/pull/13047) into `releases/29.x` on 2026-11-05

## Context

- Work items: AB#651132
- Labels: Team: Integrations
- Systems: crm, development, platform
- From the description: "Restore the twelve W1 conditional table relations removed during the Comment Line Table Name enum conversion"

## Possibly related

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

- [Import subscription contracts and contract lines](https://learn.microsoft.com/dynamics365/business-central/SRB/setup/import) — possibly related: Configuration package imports with comment line relations for Merge Duplicates buffer. (model-linked)
- [Merge Duplicate Customers, Vendors, or Contacts](https://learn.microsoft.com/dynamics365/business-central/sales-how-merge-duplicate-records) — possibly related: Merge Duplicates feature uses configuration imports for Comment Line relations restoration. (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).
