{"title":"Analyzing company lifecycle trace telemetry","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/telemetry-company-lifecycle-trace/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-company-lifecycle-trace, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-company-lifecycle-trace","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Analyze Business Central company lifecycle telemetry to track company creation, copying, and deletion, and investigate canceled or failed operations.","date":"2026-11-17","meta":{"topic":"concept-article"},"outline":[{"level":1,"title":"Analyzing company lifecycle trace telemetry","slug":"analyzing-company-lifecycle-trace-telemetry","at":0,"chars":19013},{"level":2,"title":"Company created","slug":"company-created","at":372,"chars":2087},{"level":3,"title":"General dimensions","slug":"general-dimensions","at":446,"chars":391},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions","at":837,"chars":1622},{"level":2,"title":"Company creation canceled","slug":"company-creation-canceled","at":2459,"chars":2172},{"level":3,"title":"General dimensions","slug":"general-dimensions-1","at":2533,"chars":410},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-1","at":2943,"chars":1688},{"level":2,"title":"Company creation failed","slug":"company-creation-failed","at":4631,"chars":2106},{"level":3,"title":"General dimensions","slug":"general-dimensions-2","at":4702,"chars":408},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-2","at":5110,"chars":1627},{"level":2,"title":"Company copied","slug":"company-copied","at":6737,"chars":2188},{"level":3,"title":"General dimensions","slug":"general-dimensions-3","at":6828,"chars":524},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-3","at":7352,"chars":1573},{"level":2,"title":"Company copy canceled","slug":"company-copy-canceled","at":8925,"chars":2153},{"level":3,"title":"General dimensions","slug":"general-dimensions-4","at":8994,"chars":543},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-4","at":9537,"chars":1541},{"level":2,"title":"Company copy failed","slug":"company-copy-failed","at":11078,"chars":2112},{"level":3,"title":"General dimensions","slug":"general-dimensions-5","at":11165,"chars":541},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-5","at":11706,"chars":1484},{"level":2,"title":"Company deleted","slug":"company-deleted","at":13190,"chars":1795},{"level":3,"title":"General dimensions","slug":"general-dimensions-6","at":13262,"chars":403},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-6","at":13665,"chars":1320},{"level":2,"title":"Company deletion canceled","slug":"company-deletion-canceled","at":14985,"chars":1970},{"level":3,"title":"General dimensions","slug":"general-dimensions-7","at":15059,"chars":419},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-7","at":15478,"chars":1477},{"level":2,"title":"Company deletion failed","slug":"company-deletion-failed","at":16955,"chars":1893},{"level":3,"title":"General dimensions","slug":"general-dimensions-8","at":17026,"chars":417},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions-8","at":17443,"chars":1405},{"level":2,"title":"Related information","slug":"related-information","at":18848,"chars":165}],"text":"# Analyzing company lifecycle trace telemetry\nINTRODUCED IN: Business Central 2020 release wave 1, version 16.1\nCompany lifecycle telemetry gathers data about the success or failure of the following company-related operations:\n creating a company\n copying a company\n deleting a company\nFailed operations result in a trace log entry that includes a reason for the failure.\n## Company created\nOccurs when the company has been successfully created.\n### General dimensions\nDimension|Description or value\nmessage|Company created: {companyName} <br /><br />`{companyName}` indicates the name of the new company.\nseverityLevel|1\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyName|Specifies the display name of the Business Central company.\ncomponent|Dynamics 365 Business Central Server\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\ndeprecatedKeys|Specifies a comma-separated list of keys that have been deprecated. We recommend that you update any queries that use these keys to use the new key names.\nenvironmentName|Specifies the name of the tenant environment. See Managing environments<tenant-admin-center-environments>.\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0001\nresult|Success\nserverExecutionTime|Specifies the amount of time it took the server to create the company. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time it took to create the company. The time has the format hh:mm:ss.sssssss.\n## Company creation canceled\nOccurs when creating a company was canceled.\n### General dimensions\nDimension|Description or value\nmessage|Company creation canceled: {companyName}<br /><br />`{companyName}` indicates the name of the company being created.\nseverityLevel|2\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyName|Specifies the display name of the Business Central company.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\ndeprecatedKeys|Specifies a comma-separated list of keys that have been deprecated. We recommend that you update any queries that use these keys to use the new key names.\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0002\ncancelReason|Specifies why the operation was canceled.\ncancelReasonMessage|Specifies the exception message for the cancellation.\nresult|Canceled\nserverExecutionTime|Specifies the amount of time it took the server to create the company before being canceled. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed by the operation.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time used to create the company before being canceled. The time has the format hh:mm:ss.sssssss.\n## Company creation failed\nOccurs when a company failed to be created.\n### General dimensions\nDimension|Description or value\nmessage|Company creation failed: {companyName}<br /><br />`{companyName}` indicates the name of the company being created.\nseverityLevel|3\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyName|Specifies the display name of the Business Central company.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\ndeprecatedKeys|Specifies a comma-separated list of keys that have been deprecated. We recommend that you update any queries that use these keys to use the new key names.\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0003\nfailureReason|Specifies the exception that indicates the cause of the failure.\nresult|Failure\nserverExecutionTime|Specifies the amount of time it took the server to create the company before it failed. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed by the operation.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time used to create the company before it failed. The time has the format hh:mm:ss.sssssss.\n## Company copied\nOccurs when a company has been copied from another company successfully.\n### General dimensions\nDimension|Description or value\nmessage|Company copied: {companyNameSource} to {companyNameDestination}<ul><li>`{companyNameSource}` is the name of the company that was copied.</li><li>`{companyNameDestination}` is the name of the new company that was created.</li></ul>\nseverityLevel|1\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyNameDestination|Specifies the name of the new company.\ncompanyNameSource|Specifies the name of the Business Central company.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\ndeprecatedKeys|Specifies a comma-separated list of keys that have been deprecated. We recommend that you update any queries that use these keys to use the new key names.\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0004\nresult|Success\nserverExecutionTime|Specifies the amount of time it took the server to copy the company. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed by the operation.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time it took to copy the company. The time has the format hh:mm:ss.sssssss.\n## Company copy canceled\nOccurs when copying a company was canceled.\n### General dimensions\nDimension|Description or value\nmessage|Company copy canceled: {companyNameSource} to {companyNameDestination}<ul><li>`{companyNameSource}` is the name of the company that was being copied.</li><li>`{companyNameDestination}` is the name of the new company that was being created.</li></ul>\nseverityLevel|2\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyNameSource|Specifies the name of the company that was being copied.\ncompanyNameDestination|Specifies the name of the new company that was being created.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0005\ncancelReason|Specifies why the operation was canceled.\ncancelReasonMessage|Specifies the exception message for the cancellation.\nresult|Canceled\nserverExecutionTime|Specifies the amount of time it took the server to copy the company. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time used to do the operation. The time has the format hh:mm:ss.sssssss.\n## Company copy failed\nOccurs when a company failed to be copied from another company.\n### General dimensions\nDimension|Description or value\nmessage|Company copy failed: {companyNameSource} to {companyNameDestination}<ul><li>`{companyNameSource}` is the name of the company that was being copied.</li><li>`{companyNameDestination}` is the name of the new company that was being created.</li></ul>\nseverityLevel|3\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyNameSource|Specifies the name of the company that was being copied.\ncompanyNameDestination|Specifies the name of the new company that was being created.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0006\nfailureReason|Specifies the exception that indicates the cause of the failure.\nresult|Failure\nserverExecutionTime|Specifies the amount of time on the server. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time used to create the company before it failed. The time has the format hh:mm:ss.sssssss.\n## Company deleted\nOccurs when a company has been deleted successfully.\n### General dimensions\nDimension|Description or value\nmessage|Company deleted: {companyName}<br /><br />`{companyName}` indicates the name of the company that was deleted.\nseverityLevel|1\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyName|Specifies the display name of the Business Central company.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0007\nresult|Success\nserverExecutionTime|Specifies the amount of time it took on the server. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that the operation executed.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time it took to delete the company. The time has the format hh:mm:ss.sssssss.\n## Company deletion canceled\nOccurs when deleting a company was canceled.\n### General dimensions\nDimension|Description or value\nmessage|Company deletion canceled: {companyName}<br /><br />`{companyName}` indicates the name of the company that was being deleted.\nseverityLevel|2\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyName|Specifies the display name of the Business Central company.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0008\ncancelReason|Specifies why the operation was canceled.\ncancelReasonMessage|Specifies the exception message for the cancellation.\nresult|Canceled\nserverExecutionTime|Specifies the amount of time it took on the server. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed by the operation.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time used to delete the company before being canceled. The time has the format hh:mm:ss.sssssss.\n## Company deletion failed\nOccurs when a company failed to be deleted.\n### General dimensions\nDimension|Description or value\nmessage|Company deletion failed: {companyName}<br /><br />`{companyName}` indicates the name of the company that was being deleted.\nseverityLevel|3\nuser_Id|The user telemetry ID for the user. From the user card, you can use user_Id to identify the user who triggered this telemetry event. See telemetry-enable-application-insights#assign-a-telemetry-id-to-users.\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nclientType|Specifies the type of client that performed the operation, such as Background or Web. See ClientType option type<../developer/methods-auto/clienttype/clienttype-option>.\ncompanyName|Specifies the display name of the Business Central company.\ncomponent|Dynamics 365 Business Central Server.\ncomponentVersion|Specifies the version number of the component that emits telemetry (see the component dimension.)\nenvironmentType|Specifies the environment type for the tenant, such as Production, Sandbox, Trial. See tenant-admin-center-environments#types-of-environments.\neventId|LC0009\nfailureReason|Specifies the exception that caused the failure.\nresult|Failure\nserverExecutionTime|Specifies the amount of time it took on the server. The time has the format hh:mm:ss.sssssss.\nsqlExecutes|Specifies the number of SQL statements that were executed by the operation.\nsqlRowsRead|Specifies the number of table rows that were read by the SQL statements.\ntelemetrySchemaVersion|Specifies the version of the Business Central telemetry schema.\ntotalTime|Specifies the amount of time used to delete the company before it failed. The time has the format hh:mm:ss.sssssss.\n## Related information\nMonitoring and Analyzing Telemetry<telemetry-overview>\nEnable Sending Telemetry to Application Insights<telemetry-enable-application-insights>"}