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

Notifications

Announcements

No record found.

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,294 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.
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans