---
id: change/bcapps/12561
type: change
title: "#12561 [Shopify] Preserve tax match after rate conflict"
summary: Shopify order processing now preserves tax mappings and holds document creation when a tax rate conflict occurs, rather than rolling back changes on error, allowing merchants to review and resolve the conflict.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit shpfy tma events
  - codeunit shpfy order events
  - codeunit shpfy process order
  - codeunit shpfy process orders
  - report shpfy sync orders from shopify
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-22T01:10:58.676Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d3054a3d41d7c9ca2ecedf1b7c2b49c7e638ca8f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12561
    title: "microsoft/BCApps#12561: [Shopify] Preserve tax match after rate conflict"
    date: "2026-10-20"
    commit: d3054a3d41d7c9ca2ecedf1b7c2b49c7e638ca8f
    t: null
    quote: The order retains successful mappings and tax-match state, remains unprocessed with the existing guidance message, and no Sales Document is created.
links:
  learn: []
  objects:
    - object/codeunit/30473-ca
    - object/codeunit/30162
    - object/codeunit/30166
    - object/codeunit/30167
    - object/report/30104
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extending-shopify
      title: Extending Shopify
      label: possibly related
      why: touches Codeunit 30162 "Shpfy Order Events"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/shopify/shopify-tax-matching
      title: Set up and use Shopify Tax Matching
      label: possibly related
      why: Documents tax matching setup and preservation for Shopify orders
      by: model
number: 12561
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12561
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-20T10:12:25Z"
author: onbuyuka
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 6
  additions: 165
  deletions: 18
  al: 5
apps:
  - Shopify
  - ShopifyNA
objects_touched:
  - key: codeunit/30473
    page: codeunit/30473-ca
    type: codeunit
    id: 30473
    name: Shpfy TMA Events
    app: ShopifyNA
    status: modified
  - key: codeunit/30162
    page: codeunit/30162
    type: codeunit
    id: 30162
    name: Shpfy Order Events
    app: Shopify
    status: modified
  - key: codeunit/30166
    page: codeunit/30166
    type: codeunit
    id: 30166
    name: Shpfy Process Order
    app: Shopify
    status: modified
  - key: codeunit/30167
    page: codeunit/30167
    type: codeunit
    id: 30167
    name: Shpfy Process Orders
    app: Shopify
    status: modified
  - key: report/30104
    page: report/30104
    type: report
    id: 30104
    name: Shpfy Sync Orders from Shopify
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13209
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13209
fixes_issues: []
work_items:
  - 653452
systems:
  - integration
quote: The order retains successful mappings and tax-match state, remains unprocessed with the existing guidance message, and no Sales Document is created.
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #12561 [Shopify] Preserve tax match after rate conflict

> Shopify order processing now preserves tax mappings and holds document creation when a tax rate conflict occurs, rather than rolling back changes on error, allowing merchants to review and resolve the conflict.

[Pull request](https://github.com/microsoft/BCApps/pull/12561) · merged into `main` (BC30) on 2026-10-20 by onbuyuka · 6 files (+165 -18), 5 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Tax rate conflicts are treated as intentional processing holds instead of exceptions
- Successful tax area and jurisdiction mappings persist when conflicts occur
- Orders remain unprocessed without creating a Sales Document, keeping the Review Tax Match recovery action available
- The internal OnBeforeCreateSalesHeader event can now return an intentional hold message
- Behavior applies consistently to both manual and automatic order processing
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30473 "Shpfy TMA Events"](../../objects/codeunit/30473-ca.md), ShopifyNA (CA layer): modified
- [Codeunit 30162 "Shpfy Order Events"](../../objects/codeunit/30162.md), Shopify: modified
- [Codeunit 30166 "Shpfy Process Order"](../../objects/codeunit/30166.md), Shopify: modified
- [Codeunit 30167 "Shpfy Process Orders"](../../objects/codeunit/30167.md), Shopify: modified
- [Report 30104 "Shpfy Sync Orders from Shopify"](../../objects/report/30104.md), Shopify: modified

## Also merged into

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

## Context

- Work items: AB#653452
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "The order retains successful mappings and tax-match state, remains unprocessed with the existing guidance message, and no Sales Document is created."

## Possibly related

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

- [Extending Shopify](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-extending-shopify) — possibly related: touches Codeunit 30162 "Shpfy Order Events"
- [Set up and use Shopify Tax Matching](https://learn.microsoft.com/dynamics365/business-central/shopify/shopify-tax-matching) — possibly related: Documents tax matching setup and preservation for Shopify orders (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).
