RSS

Monthly Archives: December 2023

How To Show Business Central Server Information In Telemetry

In Business Central it is standard to not show server specific information in telemetry. The reason for this is that many run the SaaS version which makes server information irrelevant since the end users don’t need to care about server information. However, some us still have customers that run OnPrem which this information can be quite useful. One of our customers has multiple servers with job queues activated on all of them. One way of troubleshooting job queues is to look at if a certain server is the source of problem and to do that we need server information in the telemetry.
In this blog entry I will explain how you can create your own telemetry message that send the job queue entry status and server information to application insights.

Read the rest of this entry »
 
Leave a comment

Posted by on 2023-12-21 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: ,

 
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