Troubleshooting with telemetry
Troubleshooting with telemetry covers how Business Central sends telemetry to Azure Application Insights and how to turn it on, analyze it with KQL or Power BI, set up alerts, and use it for performance problems. It answers setup, event lookup, query and reporting questions.
Path: Development > Troubleshooting > Troubleshooting with telemetry · tier official · system platform · narrative reviewed (checked by Opus)
Overview
Business Central can emit operational data to Azure Application Insights, at the environment level and at the app/extension level. This section explains how to enable that telemetry for online and on-premises deployments, what events are emitted, and how to analyze and act on the data.
The pages follow a practical order. Start with “Monitoring and Analyzing Telemetry” for the overall picture, then “Turn Business Central Environment Telemetry On or Off” to connect an environment to Application Insights. “Available Business Central Telemetry” lists the events by area and event ID, so you can find what to query.
For analysis, use the Power BI apps (Usage, Errors, Performance, Administration reports) or write KQL queries against tables such as traces and pageViews. “Set Up Business Central Telemetry Alerts” covers automated notifications, and “How to work with a performance problem” places telemetry next to profilers and database analysis tools in a measure, locate, eliminate process.
Key points
- Telemetry can be enabled at environment level and at app/extension level, sending data to Azure Application Insights.
- Environment telemetry setup uses a connection string (or instrumentation key) for online and on-premises deployments; the setup page also covers user telemetry ID assignment and single-tenant mode setup.
- Available Business Central Telemetry lists events by area and event ID, including lifecycle, runtime, and client events.
- KQL pages show syntax and examples for the traces and pageViews tables, session and user tracking, and report usage analysis.
- The free open-source Power BI apps provide four reports: Usage, Errors, Performance, and Administration.
- The Performance report covers session timings, long-running SQL queries, database lock timeouts, and job queue timings.
- Telemetry alerts can be built with Application Insights alerts, Azure Logic Apps, or Power Automate using KQL queries and the Azure Monitor Logs connector.
- The performance troubleshooting guide covers the scheduled and in-client Performance Profiler, AL Profiler, missing indexes, and database wait statistics, alongside telemetry.
Learn pages
- Analyze and Monitor Telemetry with KQL: Query Business Central telemetry with Kusto Query Language to follow sessions and users, investigate performance, and analyze report usage.
- Business Central telemetry is stored in Application Insights in traces and pageViews tables
- Kusto Query Language (KQL) is used to query telemetry data in Application Insights
- Kusto queries can be used in Application Insights Logs, Power BI reports, Alerts, Azure Dashboards, and Jupyter Notebooks
- With workspace-based resources, telemetry goes to Log Analytics workspace for consolidated access across application, infrastructure, and platform logs
- Telemetry table names differ: traces in Application Insights become AppTraces in Log Analytics; pageViews become AppPageViews
- Business Central server emits timestamps in UTC timezone; use datetime_utc_to_local() function to convert to local timezone
- From version 24 onwards, session_Id and user_Id are aligned between server and browser components for advanced troubleshooting
- Analyze and Monitor Telemetry with Power BI: Install and configure Power BI apps for Business Central telemetry to analyze usage, investigate errors, and monitor environment performance.
- Power BI telemetry apps consist of four reports: Usage, Errors, Performance, and Administration.
- Usage report covers sessions, clients, locations, page views, reports, feature usage, integrations, and deprecated features.
- Error report analyzes user errors, integration errors, and system errors; supplements Jupyter notebook troubleshooting guides.
- Performance report provides insights into sessions, page timings, long-running queries, database locks, and job scheduling.
- Administration report tracks environment inventory, version updates, and changes to environments, companies, extensions, indexes, and fields.
- App parameters control refresh schedules, Microsoft Entra tenant mapping, timezone, data inclusion, and app filtering.
- Sample data is shown by default in Power BI apps; actual data requires connecting Application Insights resource.
- Available Business Central Telemetry: Find Business Central telemetry by area or event ID to monitor environments and extensions, diagnose errors, and analyze performance.
- Business Central telemetry is logged into traces or pageViews tables in Application Insights
- Telemetry covers application events, client events, lifecycle events, and runtime events
- How to work with a performance problem: Troubleshooting process that can help to guide you to find the root cause slow performance.
- Monitoring and Analyzing Telemetry: Monitor Business Central environments and extensions with Application Insights telemetry to diagnose errors, analyze performance, and track usage.
- Environment-level telemetry and app-level telemetry can be enabled separately to Application Insights resources.
- Status: Per-extension telemetry enabled from Business Central 2020 release wave 2 by setting connection string in app.json.
- Both online and on-premises instances can emit telemetry to Application Insights.
- Telemetry data is stored in Application Insights Logs in traces and pageViews tables, queried with KQL.
- Two free, open-source Power BI apps available from marketplace: one for environment telemetry, one for app telemetry.
- Permissions: Power BI Pro licenses required to install telemetry Power BI apps.
- In the observatory: Codeunit 8703 “Feature Telemetry”
- Set Up Business Central Telemetry Alerts: Set up alerts on Business Central telemetry with Azure Monitor, Logic Apps, or Power Automate to respond to issues and environment changes.
- Telemetry alerts can be defined using Application Insights, Azure Logic Apps, or Power Automate
- Defining alerts requires a Kusto KQL query to define the alerting condition
- It is good practice to add where clause limiting event timestamp in alerting queries, such as timestamp greater than ago 1 hour
- Step: Create alerts in Application Insights by opening Azure portal, locating Application Insights resource, and selecting Alerts
- Azure Logic Apps and Power Automate use Azure Monitor Logs connector with workspace table names like AppTraces instead of traces
- Sample alerting queries and automations are available in the Business Central BCTech repository on GitHub
- Turn Business Central Environment Telemetry On or Off: Connect Business Central online or on-premises environments to Azure Application Insights to collect telemetry and troubleshoot issues.
- Prerequisite: Create an Azure Application Insights resource to receive telemetry data
- Step: Obtain Connection String or Instrumentation Key from the Application Insights resource Overview page
- Connection String is recommended for versions after 2020 release wave 2; Instrumentation Key support ended March 31, 2025
- Step: For online environments, enable telemetry in admin center by selecting Define and entering connection string
- Step: For on-premises single-tenant, set ApplicationInsightsConnectionString in server configuration
- Step: For on-premises multitenant, specify connection string per tenant during Mount-NAVTenant
- Telemetry ID can be assigned or cleared per user on User Card to track troubleshooting by individual
- Same Application Insights resource can be used for multiple tenants and environments
Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.
Videos and posts
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- Client Crash? Check Error Dialog signal (community post): “telemetry is the way to investigate client crashes. Start from the operation id shown at the crash”
- Dynamics 365 Business Central Online Wait Statistics in Telemetry: the AI boost (community post): “AI can analyze exported wait statistics telemetry to provide performance insights”
- Use sqlServerSessionId to spot on blocking sessions in Dynamics 365 Business Central 2026 Wave 1 (community post): “Investigation workflow involves isolating lock timeouts, filtering lock snapshots”
- BC Telemetry Buddy – When Your 12-Year-Old Accidentally Helps You Find a Problem (community post): “lets you question Business Central telemetry in natural language instead of writing KQL”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 7 Learn pages
- learnAnalyze and Monitor Telemetry with KQL2026-11-17
- learnAnalyze and Monitor Telemetry with Power BI2026-11-17
- learnAvailable Business Central Telemetry2026-11-17
- learnHow to work with a performance problem2026-09-18
- learnMonitoring and Analyzing Telemetry2026-11-17
- learnSet Up Business Central Telemetry Alerts2026-11-17
- learnTurn Business Central Environment Telemetry On or Off2026-11-17