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

Community site session details

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

BC 23.1 crashes when modifying a record in a custom table

(0) ShareShare
ReportReport
Posted on by 23
I had a mod that was running for a customer, based on a custom table for budgeting.
 
When I finish entering any record, and put a comment on the line, it crashes BC but does not trigger the debugger. I get the Go Home link and that's it. No record of any problem.
 
Also, the OnLookup button (the ellipsis) also crashes the system in PROD, but not in DEV.
 
It only happens on this mod. And this was working fine before the 23.1 upgrade. It was tested by the user and brought into PROD just before the upgrade.
 
Anyone else getting this problem?
I have the same question (0)
  • Verified answer
    Val Gameiro Consulting LLC Profile Picture
    23 on at
    BC 23.1 crashes when modifying a record in a custom table
    I'm not sure what happened, but the crash is no longer happening. I'm assuming there was a MS minor upgrade in the background.
  • Judy Profile Picture
    Microsoft Employee on at
    BC 23.1 crashes when modifying a record in a custom table
    Hi Val,
     
    You mentioned that the problem simply crashes BC and the debugger, and don't know where it is crashing. Since we don't have your custom code and your demo environment, it is highly recommended that you can make a breakpoints in the specific lines and debug the code step by step, then you may identify the root cause why the debugger crashed.
    The reference Microsoft document:
     
    Best Regards,
    Judy
  • Val Gameiro Consulting LLC Profile Picture
    23 on at
    BC 23.1 crashes when modifying a record in a custom table
    Here is the snapshot:
     
     
    And this is the last code it runs:
     
        procedure CheckIfBlocked()
        begin
            if "Budget Name" = GLBudgetName.Name then
                exit;
            if GLBudgetName.Name <> "Budget Name" then
                GLBudgetName.Get("Budget Name");
            GLBudgetName.TestField(Blocked, false);
        end;
     
    The Budget is not blocked, and I don't get any errors, and then it goes into database close.
  • Val Gameiro Consulting LLC Profile Picture
    23 on at
    BC 23.1 crashes when modifying a record in a custom table
    Ok, the problem is I don't know where it is crashing, as it simply crashes BC and the debugger, so I don't know where it is crashing.
     
    This is the field where it crashes... it is a plain text field on the page:
                    field(Comment; Rec.Comment)
                    {
                        ApplicationArea = All;
                        Editable = StatusIsOpen;
                    }
     
            field(50001; Comment; Text[250]) { }
     
    And this is the only code that would run when I populate it -- there's no OnValidate for it:
     
        trigger OnModify()
        begin
            CheckIfBlocked();
            "User ID" := CopyStr(UserId(), 1, MaxStrLen("User ID"));
        end;
     
    And this is on the page:
     
    page 50006 "Custom Budget Preapproval"
    {
        ApplicationArea = All;
        PageType = List;
        SourceTable = "Temp G/L Budget Entry";
        UsageCategory = History;
     
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    BC 23.1 crashes when modifying a record in a custom table
    Hi Sir,
     
    Please check the following Microsoft Document which help you troubleshoot issues with Business Central so that you can gather information about a given problem, identify the cause of the problem, and eventually implement a sustainable solution that does not introduce new issues.
     
    Best Regards,
    Judy
  • Suggested answer
    YUN ZHU Profile Picture
    89,830 Super User 2025 Season 2 on at
    BC 23.1 crashes when modifying a record in a custom table
    Hi, I just tested it briefly and didn't encounter this problem. I suspect it may also be a problem with the program itself. If I debug it, will I find the problem?
    BC23.1:
    Custom Table:
    Lookup:
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,035 Moderator on at
    BC 23.1 crashes when modifying a record in a custom table
    Maybe you can share the code that is causing this behavior?
    Du you have a CI(CD in place for your code that builds it against next minor / next major releases ?

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,899 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,444

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,304

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans