---
id: change/bcapps/14006
type: change
title: "#14006 GP - Better item transaction duplicate handling"
summary: Fixes duplicate records during GP migration when inventory transactions contain multiple lot number receipt lines. A new GP item transactions buffer table is added and the GP Populate Combined Tables logic is updated, with permission set updates and new tests.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - permissionset hybridgp - edit
  - permissionset hybridgp - objects
  - permissionset hybridgp - read
  - permissionsetextension intelligent cloud - hgp
  - permissionsetextension d365 basic - hgp
  - permissionsetextension d365 basic isv - hgp
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-11-18T00:57:47.545Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4c2cd7171f1e1c41bcb5f5893f67589d71719050
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14006
    title: "microsoft/BCApps#14006: GP - Better item transaction duplicate handling"
    date: "2026-11-17"
    commit: 4c2cd7171f1e1c41bcb5f5893f67589d71719050
    t: null
    quote: fixes a duplicate issue that occurs when a GP migration client is migrating inventory transactions that contain multiple lot number receipt lines
links:
  learn: []
  objects:
    - object/permissionset/4031
    - object/permissionset/4029
    - object/permissionset/4032
    - object/permissionsetextension/4028
    - object/permissionsetextension/4025
    - object/permissionsetextension/4026
    - object/permissionsetextension/4027
    - object/codeunit/40125
    - object/table/41011
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/migration-retain-permissions
      title: Retain User Permissions During Cloud Migration
      label: possibly related
      why: Cloud migration removes system-scope permission sets and assigns INTELLIGENT CLOUD permission set.
      by: model
number: 14006
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14006
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-17T12:05:42Z"
author: jaymckinney-enavate
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 10
  additions: 298
  deletions: 27
  al: 9
apps:
  - HybridGP
objects_touched:
  - key: permissionset/4031
    page: permissionset/4031
    type: permissionset
    id: 4031
    name: HybridGP - Edit
    app: HybridGP
    status: modified
  - key: permissionset/4029
    page: permissionset/4029
    type: permissionset
    id: 4029
    name: HybridGP - Objects
    app: HybridGP
    status: modified
  - key: permissionset/4032
    page: permissionset/4032
    type: permissionset
    id: 4032
    name: HybridGP - Read
    app: HybridGP
    status: modified
  - key: permissionsetextension/4028
    page: permissionsetextension/4028
    type: permissionsetextension
    id: 4028
    name: INTELLIGENT CLOUD - HGP
    app: HybridGP
    status: modified
  - key: permissionsetextension/4025
    page: permissionsetextension/4025
    type: permissionsetextension
    id: 4025
    name: D365 BASIC - HGP
    app: HybridGP
    status: modified
  - key: permissionsetextension/4026
    page: permissionsetextension/4026
    type: permissionsetextension
    id: 4026
    name: D365 BASIC ISV - HGP
    app: HybridGP
    status: modified
  - key: permissionsetextension/4027
    page: permissionsetextension/4027
    type: permissionsetextension
    id: 4027
    name: D365 TEAM MEMBER - HGP
    app: HybridGP
    status: modified
  - key: codeunit/40125
    page: codeunit/40125
    type: codeunit
    id: 40125
    name: GP Populate Combined Tables
    app: HybridGP
    status: modified
  - key: table/41011
    page: table/41011
    type: table
    id: 41011
    name: GP Item Transactions Buffer
    app: HybridGP
    status: added
objects_unjoined: []
obsoletions: []
backports:
  - number: 14354
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/14354
fixes_issues: []
work_items:
  - 659181
systems:
  - administration
quote: fixes a duplicate issue that occurs when a GP migration client is migrating inventory transactions that contain multiple lot number receipt lines
joined_against:
  major: "30"
  commit: 4d60d10920084a35a6231e5a0ffbd0577b0c399e
---

# #14006 GP - Better item transaction duplicate handling

> Fixes duplicate records during GP migration when inventory transactions contain multiple lot number receipt lines. A new GP item transactions buffer table is added and the GP Populate Combined Tables logic is updated, with permission set updates and new tests.

[Pull request](https://github.com/microsoft/BCApps/pull/14006) · merged into `main` (BC30) on 2026-11-17 by jaymckinney-enavate (community contribution) · 10 files (+298 -27), 9 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- New GP Item Transactions Buffer table added to the HybridGP app
- GP Populate Combined Tables codeunit updated to avoid duplicate item transactions
- Duplicates happened when a transaction had several lot number receipt lines
- HybridGP permission sets and permission set extensions updated for the new table
- New tests added in GP Item Transaction Tests
- Behaviour changes for users or extensions.

## AL objects touched

- [Permission set 4031 "HybridGP - Edit"](../../objects/permissionset/4031.md), HybridGP: modified
- [Permission set 4029 "HybridGP - Objects"](../../objects/permissionset/4029.md), HybridGP: modified
- [Permission set 4032 "HybridGP - Read"](../../objects/permissionset/4032.md), HybridGP: modified
- [Permission set extension 4028 "INTELLIGENT CLOUD - HGP"](../../objects/permissionsetextension/4028.md), HybridGP: modified
- [Permission set extension 4025 "D365 BASIC - HGP"](../../objects/permissionsetextension/4025.md), HybridGP: modified
- [Permission set extension 4026 "D365 BASIC ISV - HGP"](../../objects/permissionsetextension/4026.md), HybridGP: modified
- [Permission set extension 4027 "D365 TEAM MEMBER - HGP"](../../objects/permissionsetextension/4027.md), HybridGP: modified
- [Codeunit 40125 "GP Populate Combined Tables"](../../objects/codeunit/40125.md), HybridGP: modified
- [Table 41011 "GP Item Transactions Buffer"](../../objects/table/41011.md), HybridGP: added

## Also merged into

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

## Context

- Work items: AB#659181
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Integrations
- Systems: administration
- From the description: "fixes a duplicate issue that occurs when a GP migration client is migrating inventory transactions that contain multiple lot number receipt lines"

## Possibly related

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

- [Retain User Permissions During Cloud Migration](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/migration-retain-permissions) — possibly related: Cloud migration removes system-scope permission sets and assigns INTELLIGENT CLOUD permission set. (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).
