RSS

Tag Archives: Business Central

ChangeCompany Command Is Dangerous

The function Rec.ChangeCompany has been around for quite some in Navision/Dynamics NAV/Business Central. It is quite useful since it allows the user to quickly switch between companies and do record modifications in another companies in the same database. However, this is a very dangerous command especially now when events has been introduced. The question is if this command is still relevant today or if it should be passed to the cemetery.

Read the rest of this entry »
 
Leave a comment

Posted by on 2024-01-18 in Okategoriserade

 

Tags:

How to Find a User From the User Telemetry ID

In my previous log entry I described how to find activity for a specific user in telemetry from Microsoft Business Central. This entry will be about doing the opposite, having a User Telemetry ID and then try to find which user it belongs to. The solution to this varies depending on which Business Central version you are running and which platform.

Read the rest of this entry »
 
Leave a comment

Posted by on 2024-01-08 in Okategoriserade

 

Tags: , , , , , ,

How to search error messages in telemetry from Business Central for a specific user

Sometimes users can’t seem to send proper error message and instead of calling/mailing them back and forth you can always use telemetry to get the error message with the corresponding call stack and other useful info. And if you set up the data proper you can also filter on error messages by user. In fact, it doesn’t need to be error message you can filter on all available telemetry signals that contains the UserId as dimension. This entry will cover that.

Read the rest of this entry »
 
Leave a comment

Posted by on 2024-01-04 in Okategoriserade

 

Tags: , , , ,

Message not shown because the NavBaseException constructor was used without privacy classification

This entry is about on how you can get a more detailed information whey you get “Message not shown because the NavBaseException constructor was used without privacy classification” in the telemetry from Business Central if and only if you are running OnPrem. Spoiler, telemetry errors are shown in the eventviewer.

Read the rest of this entry »
 
Leave a comment

Posted by on 2024-01-03 in Okategoriserade

 

Tags: , , , , ,

The field with ID = X is not found on the page

This is an error message that I got when I was working with Business Central test pages using BCPT (Business Central Performance Toolkit). This post will explain how to find which field it is and in what page and what reason could be for the error message.

Read the rest of this entry »
 
Leave a comment

Posted by on 2023-12-18 in Okategoriserade

 

Tags: , , ,

AL0000G7I – Multiple custom dimensions with the same dimension name provided.

There is a telemetry event Id called: AL0000G7I – Multiple custom dimensions with the same dimension name provided.

Currently (2023-12-15) this event hasn’t been documented in the offical page for telemetry events.

The reason for the error can seem pretty straightforward. Probably you have added the same dimension twice to the dimension dictionary.

However, this wasn’t the scenario in my case.

There is a function that you can add telemetry dimensions that should be appended to ALL telemetry events (from the current app).

In codeunit 8706 “Telemetry Custom Dimensions”, you can subscribe to the event OnAddCommonCustomDimensions and from that you can append custom dimensions.

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Telemetry Custom Dimensions", OnAddCommonCustomDimensions, '', false, false)]
    local procedure OnAddCommonCustomDimensions(sender: Codeunit "Telemetry Custom Dimensions")
    begin
        sender.AddCommonCustomDimension('ServerInstanceID', format(Database.ServiceInstanceId()));
        sender.AddCommonCustomDimension('ServerInstanceName', GetServerInstanceName());
        sender.AddCommonCustomDimension('ServerName', GetServerName());
    end;

And as you probably you have understood by now it was here that I got the error with the same dimensions. I tried to log send the dimension ServerName multiple times.

And there it is, I hope it solved your error.

 
Leave a comment

Posted by on 2023-12-15 in Okategoriserade

 

Tags: ,

When does xrec work?

As a Business Central developer we have from time to got used to using xrec and rec as container for previous value and current new value.

However, there are certain scenarios when xrec doesn’t work as intended.

Read the rest of this entry »
 
Leave a comment

Posted by on 2023-05-13 in Okategoriserade

 

Tags: , ,

Tag: 0000G92 – Sales Header must not be temporary

Are you running OnPrem and you get a lot of warnings “Tag: 0000G92 – Sales Header must not be temporary” or “Tag: 0000G95 – Sales Header must not be temporary” in the event viewer like this?

Read the rest of this entry »
 
Leave a comment

Posted by on 2023-04-19 in Okategoriserade

 

Tags: , ,

Business Central: Multiversion Branch With Preprocessor Directives

Like many companies nowadays we have bunch of customers with different Business Central versions that we need to support.

On top of this many of us tries to “create  money while we sleep” by creating stand alone apps that we could reuse/resell to new customers and perhaps eventually put them on AppSource in the next step.

This means that we need to support/maintain our standalone apps in multiple versions.

Read the rest of this entry »
 
2 Comments

Posted by on 2023-04-07 in Okategoriserade

 

Tags: ,

Business Central Error Message: Unable to read data from the transport connection

Trying to set up access to snapshot debugger for Microsoft Business Central OnPrem with remotely access when I got this error message:

[2023-02-02 10:50:17.20] Requesting metadata for a snapshot debugging session. 
[2023-02-02 10:50:17.20] Sending request to https://<CompanyURL>.com:7483/<BC INSTANCE>/snapshotdebugger/snapshotendpointmetadata
[2023-02-02 10:50:17.28] Error: The SSL connection could not be established, see inner exception.
Unable to read data from the transport connection: En befintlig anslutning tvingades att stänga av fjärrvärddatorn..
En befintlig anslutning tvingades att stänga av fjärrvärddatorn.

[2023-02-02 10:50:17.28] Error: An error occured while processing the request.
Request ID: c563c627-4bc2-44ce-9cf0-6f1b5cd22d82
Session ID: 00721ee7-41e7-4f25-b1fc-354139dba1a6

If you are targeting a cloud instance, supply these IDs if contacting Microsoft support.
[2023-02-02 10:51:03.79] All reference symbols have been downloaded.

Apparently I had forgotten to activate both DeveloperServicesSSLEnabled and SnapshotDebuggerServicesSSLEnabled settings on the NST at the same time. Once I turned both of them off, restarted the NST and then activated both again then I stopped receiving this error.

 
Leave a comment

Posted by on 2023-02-02 in Okategoriserade

 

Tags: , , ,

 
Kauffmann @ Dynamics 365 Business Central

A good programmer makes all the right mistakes.

The BC Docs Librarian

Tips and news for AL programmers

Stefan Maroń

Dynamics 365 Business Central

James Pearson

Thoughts about Dynamics 365 Business Central, Git, Azure DevOps, PowerShell, Automated Testing, Visual Studio Code...and maybe some other stuff

Roberto Stefanetti BLOG

MVP & MCT Microsoft Dynamics 365 Business Central, Powershell, Azure, SQL Server

JoeBrown

DevOps starts with culture!

Comments for DevOps ABCs Blog

Reflections from the ERP field

DevOps ABCs Blog

Reflections from the ERP field

Dynamics 365 Business Central for Partners

Reflections from the ERP field

Freddys blog

Learn something new... - then Teach someone!

Stefano Demiliani Technical Blog

Reflections from the ERP field

David Worthington's NAV Performance Blog

Micosoft Dynamics NAV Performance Testing & Optimization

Freddys Blog

Reflections from the ERP field

Marije Brummel Blog | Business Central, Azure and more...

Design Patterns, Performance, Clean Code

Vjeko.com

Ideas in the cloud

Goprowe AB

Reflections from the ERP field

ArcherPoint

Reflections from the ERP field

The NAV Viking´s Blog

- Sharing my experience in the Dynamics NAV world

Comments for

Reflections from the ERP field