---
id: change/bcapps/12545
type: change
title: "#12545 [Contoso Demo Data] Refresh Common G/L mappings before Manufacturing demo setup"
summary: Manufacturing demo data setup now runs the existing Create Common GL Account codeunit first to refresh the Common G/L account mappings. Before this, Manufacturing failed to find the Raw Materials account when Common data had been generated in an earlier session and the mappings were empty.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit manufacturing module
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:10.523Z"
  flags: []
generated:
  at: "2026-11-05T00:14:20.359Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e50c631954dfe7efb1660c12a963e57d84d10632
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12545
    title: "microsoft/BCApps#12545: [Contoso Demo Data] Refresh Common G/L mappings before Manufacturing demo setup"
    date: "2026-10-14"
    commit: e50c631954dfe7efb1660c12a963e57d84d10632
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/4783
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/contoso-coffee/manufacturing/contoso-coffee-manufacturing-intro
      title: Introduction to Contoso Coffee Manufacturing
      label: possibly related
      why: Contoso Coffee manufacturing demo data with sample products and production scenarios.
      by: model
number: 12545
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12545
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-14T15:20:12Z"
author: attilatoury
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: 2
  additions: 145
  deletions: 0
  al: 1
apps:
  - ContosoCoffeeDemoDataset
objects_touched:
  - key: codeunit/4783
    page: codeunit/4783
    type: codeunit
    id: 4783
    name: Manufacturing Module
    app: ContosoCoffeeDemoDataset
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12547
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12547
fixes_issues: []
work_items:
  - 635852
systems:
  - platform
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12545 [Contoso Demo Data] Refresh Common G/L mappings before Manufacturing demo setup

> Manufacturing demo data setup now runs the existing Create Common GL Account codeunit first to refresh the Common G/L account mappings. Before this, Manufacturing failed to find the Raw Materials account when Common data had been generated in an earlier session and the mappings were empty.

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

## What changed

- Calls existing Create Common GL Account codeunit at the beginning of Manufacturing setup
- Fixes issue where Manufacturing fails to find Raw Materials account when Common mappings are empty
- Adds regression test to verify Manufacturing restores localized mappings without replacing existing accounts
- Supports localizations that use blank mappings
- No schema or public contract changes
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 4783 "Manufacturing Module"](../../objects/codeunit/4783.md), ContosoCoffeeDemoDataset: modified

## Also merged into

- [#12547](https://github.com/microsoft/BCApps/pull/12547) into `releases/29.x` on 2026-10-16

## Context

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

## Possibly related

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

- [Introduction to Contoso Coffee Manufacturing](https://learn.microsoft.com/dynamics365/business-central/contoso-coffee/manufacturing/contoso-coffee-manufacturing-intro) — possibly related: Contoso Coffee manufacturing demo data with sample products and production scenarios. (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).
