Skip to main content

Notifications

Business Central forum
Answered

BC 23.1 crashes when modifying a record in a custom table

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?
Categories:
  • Verified answer
    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
    Judy 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
  • 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.
  • 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
    Judy 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
    YUN ZHU 68,242 Super User 2024 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
    Inge M. Bruvik 32,744 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 ?

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,186 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,996 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans