---
id: change/bcapps/12145
type: change
title: '#12145 [Main]-Item charge assignment update Error on sales order when there is no Price.  "Sorry, we just updated this page. Reopen it and try again." when running in SaaS'
summary: Fixed an error on sales orders when assigning item charges by amount when some item lines have no price. The assignment record set is now refreshed after bulk updates to prevent stale data issues.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit item charge assgnt. (sales)
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:03.524Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e62e7dbd697150b0b36ceb728a5591c383ec4dab
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12145
    title: 'microsoft/BCApps#12145: [Main]-Item charge assignment update Error on sales order when there is no Price.  "Sorry, we just updated this page. Reopen it and try again." when running in SaaS'
    date: "2026-10-06"
    commit: e62e7dbd697150b0b36ceb728a5591c383ec4dab
    t: null
    quote: Refresh the record set with FindSet() after the bulk updates.
links:
  learn: []
  objects:
    - object/codeunit/5807
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12145
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12145
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-06T05:11:41Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 164
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/5807
    page: codeunit/5807
    type: codeunit
    id: 5807
    name: Item Charge Assgnt. (Sales)
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 581982
systems:
  - sales
quote: Refresh the record set with FindSet() after the bulk updates.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #12145 [Main]-Item charge assignment update Error on sales order when there is no Price.  "Sorry, we just updated this page. Reopen it and try again." when running in SaaS

> Fixed an error on sales orders when assigning item charges by amount when some item lines have no price. The assignment record set is now refreshed after bulk updates to prevent stale data issues.

[Pull request](https://github.com/microsoft/BCApps/pull/12145) · merged into `main` (BC30) on 2026-10-06 by neeleshsinghal · 4 files (+164 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Item charge assignment by amount failed with a page refresh error in SaaS when an item line had zero price
- The assignment fields were cleared with ModifyAll but the record set was not refreshed before the allocation logic ran
- Added FindSet() call after bulk updates to refresh the record set
- Regression test added covering zero-price and priced item line scenarios
- Fixes issue AB#581982
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5807 "Item Charge Assgnt. (Sales)"](../../objects/codeunit/5807.md), Base Application: modified

## Context

- Work items: AB#581982
- Labels: Team: SCM
- Systems: sales
- From the description: "Refresh the record set with FindSet() after the bulk updates."

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