web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

The changes to the record cannot be saved because some information on the page is not up-to-date

(0) ShareShare
ReportReport
Posted on by 2,410 Moderator
Hello Community Members - 
 
I had seen similar posts to this error, but didn't seem to find a solution yet. When I am trying to execute the below code in my Job Queue I get an error message pasted in color
 
1. There is a repeat until above this code with some basic filters
2. CUPostSalesInvoiceUtility is a codeunit which creates and posts a sales invoice. Whenever an error occurs, it will satisfy the ELSE condition. A simple error handling scenario
 
I get the error when the code hits the MODIFY in the ELSE Section, second time. The first time it hits the MODIFY in the ELSE section, no error. The record with each loop is getting changed, I verified that
 
if CUPostSalesInvoiceUtility.Run() then begin
    RecWMSSalesHeader./Processing Status/ := RecWMSSalesHeader./Processing Status/::Success;
    RecWMSSalesHeader./Processing Status Details/ := 'Transaction Created Successfully.';
    RecWMSSalesHeader./Processing Status D/T/ := CurrentDateTime;
    RecWMSSalesHeader.Modify();
end else begin
    RecWMSSalesHeader./Processing Status/ := RecWMSSalesHeader./Processing Status/::Failure;
    RecWMSSalesHeader./Processing Status Details/ := GetLastErrorText();
    RecWMSSalesHeader.Modify();
end;
 
ERROR
The changes to the record cannot be saved because some information on the page is not up-to-date. Close the page, reopen it, and try again.
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    I think in this case it is all about figuring out what trigger or event you should place your code under.
    Where have you placed this code now?
    Are you using an eventsucscriber or a trigger?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 570 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 390 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 220 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans