Skip to content
JIT error in Business Central

JIT Error?

Daniel Gorski
Daniel Gorski 22. Mai 2023
3 Min. Lesezeit

Did you know? Since BC 22 we are facing an issue which we call "JIT Error".

If you run Rec.CalcFields on a page to "calculate" a blob, next time you change the Record you will get the following error:

Error dialog stating that the Test Blob field on Test Table changed between the initial and JIT load, forcing the page to close

You can easily reproduce that issue with our repo:

https://github.com/byndit/Debug-JIT-Error#readme

Wait... JIT?

Yes! JIT means Just-In-Time.

"When a record is loaded as a partial record, the obvious question is: What happens when accessing a field that hasn't been selected for loading?

The answer is JIT loading. The platform, in such a case, does an implicit Get on the record and loads out the missing field."

Read more using partial records on https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-partial-records

This error occurs by using the following Version:

Troubleshooting panel showing the Business Central version, DE 22.1, on which the JIT error was reproduced


Our Test Scenarios:

  • Test Page 1:

    • OnAfterGetRecord -> Rec.CalcFields -> Error
  • Test Page 2:

    • OnAfterGetRecord -> NewRec = Rec -> NewRec.CalcFields -> No Error
  • Test Page 3:

    • SelectLatestVersion in OnAction trigger -> OnAfterGetRecord -> Rec.CalcFields -> No Error
  • Test Page 4:

    • Blob Field shown on the Page -> OnAfterGetRecord -> Rec.CalcFields -> No Error
  • Test Page 5:

    • Blob Field hidden on the Page -> OnAfterGetRecord -> Rec.CalcFields -> No Error

First Test:

To reproduce the error in the first test page 62001:

  1. Open the page
  2. Add some entries as shown:

Test page with three entries showing Test Blob 1 and Test Blob 2 values filled in while Test Bool is still unchecked on the selected TEST 2 row

  1. Mark the second or third entry
  2. Click on “Run Action” (two times):
    • First time: Test Bool will be switched to “true”
    • Second time: Error

Second Test:

To reproduce the error in the first test page 62001:

  1. Reopen the page after you got the error
  2. The second entry (if selected before) has Test Bool set to true now:

The same test page reopened, now showing Test Bool checked on the TEST 2 row before running the action again triggers the error

  1. Mark the second entry
  2. Click on “Run Action”
    • The error will come up directly and the page will be closed
    • Then you can’t start the page again until you clean your cache

Related posts

how-to
debugging
jit
business central
calcfields
partial records
bug
EN
E-Invoicing formats UBL, CII, ZUGFeRD and Factur-X compared

E-Invoicing

July 21, 2026 - Daniel Gorski

UBL, CII, ZUGFeRD, Factur-X: E-Invoicing Formats Finally Explained

UBL, CII, ZUGFeRD or Factur-X – these e-invoicing formats get confused all the time. We break down the difference between pure XML formats and hybrid…

Read More
Read More: UBL, CII, ZUGFeRD, Factur-X: E-Invoicing Formats Finally Explained
DE
GoBD-konforme Archivierung mit Business Central und SharePoint ohne DMS

Architektur

April 24, 2026 - Sven Wischhusen

Revisionssicher archivieren ohne DMS? Wie weit Business Central, SharePoint und Azure Blob Storage wirklich tragen

Warum „GoBD" oft vorschnell zum K.O.-Kriterium wird – und wie weit Business Central, SharePoint und Azure Blob Storage wirklich tragen.

Read More
Read More: Revisionssicher archivieren ohne DMS? Wie weit Business Central, SharePoint und Azure Blob Storage wirklich tragen