---
id: change/bcapps/11400
type: change
title: "#11400 [Shopify] Handle missing variant mapping in product action"
summary: The Show product in Shopify action on the Item Card and Item List is now enabled only when the item has a Shopify Variant linked through an enabled shop. If the variant mapping disappears before the action runs, users get clear guidance instead of a raw database filter error.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit shpfy sync products
  - pageextension shpfy item card
  - pageextension shpfy item list
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:29.587Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 02395250f92cafb5a16f732b09412536e50f04d9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11400
    title: "microsoft/BCApps#11400: [Shopify] Handle missing variant mapping in product action"
    date: "2026-09-18"
    commit: 02395250f92cafb5a16f732b09412536e50f04d9
    t: null
    quote: The action only when the item has a Shopify Variant linked through an enabled shop.
links:
  learn: []
  objects:
    - object/codeunit/30185
    - object/pageextension/30119
    - object/pageextension/30120
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11400
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11400
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-18T11:45:30Z"
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: 4
  additions: 86
  deletions: 40
  al: 3
apps:
  - Shopify
objects_touched:
  - key: codeunit/30185
    page: codeunit/30185
    type: codeunit
    id: 30185
    name: Shpfy Sync Products
    app: Shopify
    status: modified
  - key: pageextension/30119
    page: pageextension/30119
    type: pageextension
    id: 30119
    name: Shpfy Item Card
    app: Shopify
    status: modified
  - key: pageextension/30120
    page: pageextension/30120
    type: pageextension
    id: 30120
    name: Shpfy Item List
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 649996
systems:
  - integration
quote: The action only when the item has a Shopify Variant linked through an enabled shop.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11400 [Shopify] Handle missing variant mapping in product action

> The Show product in Shopify action on the Item Card and Item List is now enabled only when the item has a Shopify Variant linked through an enabled shop. If the variant mapping disappears before the action runs, users get clear guidance instead of a raw database filter error.

[Pull request](https://github.com/microsoft/BCApps/pull/11400) · merged into `main` (BC30) on 2026-09-18 by onbuyuka · 4 files (+86 -40), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Action enabled only when item has a valid Shopify Variant linked through an enabled shop
- Clear error guidance provided if variant mapping disappears between page rendering and action invocation
- Same validation behavior applied to both Item Card and Item List pages
- No schema or data changes; existing valid mappings unaffected
- Regression tests added for the new validation logic
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30185 "Shpfy Sync Products"](../../objects/codeunit/30185.md), Shopify: modified
- [Page extension 30119 "Shpfy Item Card"](../../objects/pageextension/30119.md), Shopify: modified
- [Page extension 30120 "Shpfy Item List"](../../objects/pageextension/30120.md), Shopify: modified

## Context

- Work items: AB#649996
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "The action only when the item has a Shopify Variant linked through an enabled shop."

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).
