Dynamics Business Central / NAV Developer Digest - Vol. 561

Dynamics Business Central / NAV Developer Digest - Vol. 561

ArcherPoint by Cherry Bekaert’s Developer Digest focuses on Microsoft Dynamics 365 Business Central and Dynamics NAV development. This week’s volume includes controlling a race condition when using IsolatedStorage, caching issues using SetLoadFields for partial records, what really happens when moving from NAV to BC, and using multiple AI development tools for AL.

The Dynamics 365 Business Central community, consisting of developers, project managers, and consultants, collaborates across various platforms to share valuable insights. At ArcherPoint, we greatly value their dedication and expertise. To ensure widespread access to this technical knowledge, we created Developer Digest.

Controlling a race condition when using IsolatedStorage

Before runtime version 18.0, you could encounter a race condition when using the IsolatedStorage object, where two sessions could retrieve the same key, compute different values, and then one session could overwrite the other.

Beginning with 18.0, the IsolatedStorage.Get method accepts an optional parameter, UpdLock, to control how the underlying key is locked when being read. This prevents any other session from reading or writing the same key until the transaction completes.

Important: Using this parameter to update the lock can cause performance issues, so use it only for read-modify-write sequences.

To learn more, read Stefano Demiliani’s blog, Dynamics 365 Business Central: locking down IsolatedStorage reads.

Caching issues using SetLoadFields for partial records

Duilio Tacconi tackles a thorny issue using the SetLoadFields method for partial records.

It turns out that caching does not always work the way you think it should, or, as Tacconi says, may not work at all, and this can create major performance issues.

Tacconi breaks down the problem and offers advice on when to use SetLoadFields in his blog, Partial Record vs NST Caching : the strange case of Calculate Low Level Code.

Moving from NAV to BC? What really happens

A common question clients ask: “What actually happens when we move from Dynamics NAV to Business Central?”

It turns out it isn’t one move. Instead, it’s an upgrade, then a migration.

First, NAV is upgraded to a Business Central version that can be migrated to the cloud; then it is migrated to the cloud. The real question is whether to perform a full migration or a reimplementation.

Mohana Yadav breaks down the process and offers guidance along the way in his blog, NAV to Business Central: What Actually Moves, and What Needs to Change?

AI development tools for AL

As software development moves more and more to AI, developers are utilizing multiple AI tools to ensure their code is bug-free.

In his blog, Astra + Fable, a power couple for AL?, Erik Hougaard offers a practical example by building and debugging a rental application for Business Central using two tools: Astra and Fable.

One wrote the basic code, while the other reviewed it and found bugs or areas that needed more attention.

Check out Erik’s blog to learn more.

Are you interested in Dynamics NAV and Business Central development? Check out our collection of NAV/BC Development Blogs.

Read “How To” blogs from ArcherPoint by Cherry Bekaert for practical advice on using Microsoft Dynamics NAV and Dynamics 365 Business Central.

Stay Informed

Subscribe to Communications

"*required" indicates required fields

This field is for validation purposes and should be left unchanged.
Subscription Options
By subscribing you are consenting to receiving emails from ArcherPoint and agreeing to the storing & processing of your personal data as described in our Privacy Policy. You can can unsubscribe at any time.
This field is hidden when viewing the form