---
id: change/bcapps/14344
type: change
title: "#14344 [SOA] Keep setup buffer current after instruction sync (AB#660003)"
summary: The SOA Setup timestamp helper now saves through the caller's buffer instead of a separate record, ensuring the row version stays current and preventing stale-record errors during scheduling.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit soa setup
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-21T00:57:04.586Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: fb64c131932c9383956cd9176d74bbaa98a4284e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14344
    title: "microsoft/BCApps#14344: [SOA] Keep setup buffer current after instruction sync (AB#660003)"
    date: "2026-11-20"
    commit: fb64c131932c9383956cd9176d74bbaa98a4284e
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/4400
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/shopify/synchronize-inventory
      title: Synchronize inventory with Shopify
      label: possibly related
      why: Shopify synchronization setup buffer management related to instruction sync.
      by: model
number: 14344
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14344
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-20T22:14:29Z"
author: qasimikram
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: 1
  additions: 2
  deletions: 2
  al: 1
apps:
  - SalesOrderAgent
objects_touched:
  - key: codeunit/4400
    page: codeunit/4400
    type: codeunit
    id: 4400
    name: SOA Setup
    app: SalesOrderAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 660003
systems:
  - copilot
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14344 [SOA] Keep setup buffer current after instruction sync (AB#660003)

> The SOA Setup timestamp helper now saves through the caller's buffer instead of a separate record, ensuring the row version stays current and preventing stale-record errors during scheduling.

[Pull request](https://github.com/microsoft/BCApps/pull/14344) · merged into `main` (BC30) on 2026-11-20 by qasimikram · 1 file (+2 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Timestamp helper for Instructions Last Sync At now saves through the caller's SOA Setup buffer instead of a separate record
- Keeps the caller's row version current so the later Modify in ScheduleSOAgent should not fail with stale-record error 85132286
- Avoids the error handler rescheduling instead of completing normal end-of-run bookkeeping
- Missing-record check, scheduling, recovery and the 30-minute refresh interval are unchanged
- Runtime reproduction and regression tests are still pending
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 4400 "SOA Setup"](../../objects/codeunit/4400.md), SalesOrderAgent: modified

## Context

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

## Possibly related

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

- [Synchronize inventory with Shopify](https://learn.microsoft.com/dynamics365/business-central/shopify/synchronize-inventory) — possibly related: Shopify synchronization setup buffer management related to instruction sync. (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).
