ArcherPoint Dynamics NAV Developer Digest - vol 231

ArcherPoint Dynamics NAV Developer Digest - vol 231

The NAV community, including the ArcherPoint technical staff, is made up of developers, project managers, and consultants who are constantly communicating, with the common goal of  sharing helpful information with one another to help customers be more successful.

As they run into issues and questions, find the answers, and make new discoveries, they post them on blogs, forums, social media…so everyone can benefit. We in Marketing watch these interactions and never cease to be amazed by the creativity, dedication, and brainpower we’re so fortunate to have in this community—so we thought, wouldn’t it be great to share this great information with everyone who might not have the time to check out the multitude of resources out there? So, the ArcherPoint Microsoft Dynamics NAV Developer Digest was born. Each week, we present a collection of thoughts and findings from NAV experts and devotees around the world. We hope these insights will benefit you, too.

How to Check License Usage in Microsoft Dynamics NAV

Adrian was looking for assistance in determining if active sessions are using licensed sessions in Dynamics NAV. He found this post on mibuso.com to be very helpful in determining session versus license counts for NAV 2013 and later. You’ll also find in the article the client types that do or do not consume licenses, as well as how to use PowerShell or SQL script to verify.

Dynamics NAV 2018: Object 1850 Could Not Be Found Error

Tom Hunt shares, “Here’s today’s weird issue in NAV 2018 development:  
 
When I try to run the Purchase Order page for a client in their dev environment, I get the following error message: 
 
Microsoft Dynamics NAV 
————————— 
Object of type Query with ID 1850 could not be found. 
————————— 
OK 
————————— 
 
If I run the debugger before opening the page, it tells me that the error is occurring in the middle of codeunit 1854 MS – Sales Forecast Notifier. I don’t see that codeunit in the object designer anywhere. I am baffled. I’ve seen plenty of issues with missing objects, but I’ve never seen the debugger throw an error in the middle of an object that I can’t find in the Object Designer. Can anyone explain what is happening here? It’s bizarre.” 

Matt T replies: “Disable the Sales and Inventory Forecast extension”, sharing this Developer Digest post regarding troubleshooting the issue, adding “You can’t see AL extension code in C/AL.”

Kyle advises: “NAV 2018 out of the box has a few extensions loaded that you can’t see in Object Designer. But you can tell they are there – in the Search box, go to Extension Manager.”

Tom H responds: “Thanks, Kyle and Matt. It’s very frustrating that you get a ‘codeunit missing’ message when you don’t have the correct extension installed. The user-friendly way to do that would be to have something about missing an extension, or at least a note to check extensions. Maybe they’ll improve it in the next version of BC.”

Bill Warnke also had this issue: “I just ran into this again. It only happened when objects were deployed, so I’m guessing there is a bug that’s deleting the app metadata? I’ve been putting everything in Azure DevOps. You can link a work item to your code changes when you do a release. Local discovery, global knowledge.”

Outlook Slow to Load? Take These Steps to Boost Performance

Suresh notes: “My Outlook is taking around a minute or more to open, and it usually gets stuck during ‘Loading Profile’. The following change helped resolve the issue:

  1. Go to Control PanelNetwork and InternetNetwork Connections
  2. Double-click your primary network adapter (in my case, it is my wireless connection)
  3. Click Properties
  4. Uncheck Internet Protocol Version 6 (TCP/IPv6)
  5. Click OK

Now, it takes only 3 -5 seconds to load.

John G adds: “You can also try disabling graphics acceleration by going to Options → Advanced → Display
 
Note that this is a global setting across Microsoft Office and will disable for all Office products. You will see a significant performance boost when the application loads. This is incredibly helpful if you have Jet enabled in Excel.”

Developer Tip of the Day: Hard Symbolic Links

Kyle posts: “Developer Tip of the Day: hard symbolic links are your friend. Let’s say you have some sort of working directory in Windows. I have c:share, which I share with all of my Docker containers and virtual machines. This is where I import and export FOBs, CAL text exports, Rapidstart files, XMLport output, etc.
 
Sometimes, I want those files (like Rapidstart files or CAL files) to also go into my local GIT repository folder structure. But, instead of having to remember to export things twice, or to always copy files, I found a better way. 
 
Enter symbolic hard links. In Windows, this is a way to make a single file (or directory, though I won’t go into that here) appear twice. Write the file once, and it will be in two directories at the same time.
 
Open a cmd window. mklink /h  
 
For the nerds among you, symbolic links are one of the ways Docker is efficient with disk space.”

 

If you are interested in NAV development, be sure to see our collection of NAV/BC Development Blogs.

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

Trending Posts

Stay Informed

Choose Your Preferences
First Name
*required
Last Name
*required
Email
*required
Subscription Options
Your Privacy is Guaranteed