Skip to content

Error exporting copilot agent with PAC CLI copilot extract-template #1260

@drod910

Description

@drod910

Type: Bug

I work at Microsoft as consultant and have an agent that is configured in client environment as follows:

I can demo this bug if needed.

I've tried the latest version 2.0.94 all the way back to 2.0.78 (per this log) with same result. I've closed VS code after each install and reopened.

Agent components:
-Main instructions reference topics, that reference tools, that reference pa flows that have custom connector actions.
-5 Topics that call these tools (this was done per product team saying only way to pass user context to a PA flow with custom connector)
-5 Agent tools that each call a Power Automate flow that each call a custom connector operation.
-2 child agents that reference one of the tools.

Prior version did not export with error, and the difference was the main agent instructions called the tools directly linked to a custom connector. (this was fraught with bugs so changed to pattern above per product team).

There is also another IcM ticket related to this tool in which the import excludes many bot components (icon, title, instructions, topics, etc). IcM Ticket: 664773638 (ticket keeps getting bounced between teams so trying this avenue).

This is further blocking cloning an agent making it difficult for creating copies of stable agents for iterative development. Right now the workaround is to manually re-create an agent with copy and paste of yaml and manual updates to instructions - which is very cumbersome.

Here is error log:
2025-08-20 19:59:03.9476 | INF | bolt.Session :: Product Version: 1.41.1+g4c2118a; File Version: 1.41.1
2025-08-20 19:59:04.0620 | INF | bolt.Session :: Start new session. (sessionId: 3d4076af-e02e-467c-86a4-1e425cd39b35; operationId: cc05d42d356512b226ecf76785ecdecb; userId: 26ac7d05-72f7-44e6-8c3b-9893ba091d94; nonInteractiveMode: True)
2025-08-20 19:59:04.3054 | INF | bolt.cli.CommandProcessor :: StartExecutingVerb (Verbs: ["org","who"])
2025-08-20 19:59:04.3531 | INF | bolt.cli.Verb :: Executing verb 'org who' with no arguments.
2025-08-20 19:59:04.3848 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Getting auth profile with following options: { AuthKind = DATAVERSE, IsRequired = True, ShowProfileMessages = True, VerbDisableAutoOSLogin = False, SkipValidation = False }
2025-08-20 19:59:04.6164 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Using auth profile: { Kind = UNIVERSAL, ProfileType = OperatingSystem, AadObjectId = 10e6b741-3177-4bad-887b-f45a7926a00d, CloudInstance = Public, TenantId = 5b973f99-77df-4beb-b27d-aa0c70b8482c, User = XXX@YY.com }
2025-08-20 19:59:05.5110 | INF | bolt.Session :: Product Version: 1.41.1+g4c2118a; File Version: 1.41.1
2025-08-20 19:59:05.5675 | INF | bolt.Session :: Start new session. (sessionId: 4fbf56fc-02ef-436e-8761-faf4b79b13eb; operationId: 69786492988aa31f88cc0f27c11d2fa4; userId: 26ac7d05-72f7-44e6-8c3b-9893ba091d94; nonInteractiveMode: False)
2025-08-20 19:59:05.7567 | INF | bolt.cli.CommandProcessor :: StartExecutingVerb (Verbs: ["copilot","extract-template"])
2025-08-20 19:59:05.8040 | INF | bolt.cli.Verb :: Executing verb 'copilot extract-template' with arguments --environment,--bot,--templateFilename,--templateVersion.
2025-08-20 19:59:05.8196 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Getting auth profile with following options: { AuthKind = DATAVERSE, IsRequired = True, ShowProfileMessages = True, VerbDisableAutoOSLogin = False, SkipValidation = False }
2025-08-20 19:59:05.9606 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: Attempting to Connect to Uri https://eycrm-salescopilotdev.crm16.dynamics.com/XRMServices/2011/Organization.svc
2025-08-20 19:59:06.0079 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: Organization Service URI is 'https://eycrm-salescopilotdev.crm16.dynamics.com/XRMServices/2011/Organization.svc'
2025-08-20 19:59:06.0079 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: ConnectAndInitService - Requesting connection to Organization with Dataverse Version: No organization data available
2025-08-20 19:59:06.0548 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Using auth profile: { Kind = UNIVERSAL, ProfileType = OperatingSystem, AadObjectId = 10e6b741-3177-4bad-887b-f45a7926a00d, CloudInstance = Public, TenantId = 5b973f99-77df-4beb-b27d-aa0c70b8482c, User = XXX@YY.com }
2025-08-20 19:59:06.4314 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.70.0.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2025-08-20 19:59:06Z] [MSAL:0001] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1059 MsaDeviceOperationProvider is not available. Not attempting to register the device.
2025-08-20 19:59:06.8753 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.70.0.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2025-08-20 19:59:06Z - f067d0fe-0ec6-4390-ab89-f0033065e26d] [CalculateSuggestedCacheExpiry] No access tokens or refresh tokens found in the accessor. Not returning any expiration.
2025-08-20 19:59:07.1224 | INF | bolt.authentication.store.AuthTokenStore :: Successfully acquired a token using profile of type OperatingSystem for scope 'https://eycrm-salescopilotdev.crm16.dynamics.com//.default'
2025-08-20 19:59:07.1627 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: ConnectAndInitService - Proxy created, total elapsed time: 00:00:01.1572465
2025-08-20 19:59:07.1627 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: Direct Login Process Succeeded - duration 00:00:01.2094539
2025-08-20 19:59:07.1844 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: Querying Organization Instance Details. Request ID: 48442b31-4d99-45e3-917f-a7f9d4c85897
2025-08-20 19:59:07.1844 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: Execute Command - RetrieveCurrentOrganizationRequest : RequestId=48442b31-4d99-45e3-917f-a7f9d4c85897
2025-08-20 19:59:07.9744 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: Executed Command - RetrieveCurrentOrganizationRequest : RequestId=48442b31-4d99-45e3-917f-a7f9d4c85897 : total duration: 00:00:00.7832241
2025-08-20 19:59:07.9744 | INF | Microsoft.PowerPlatform.Dataverse.Client.ServiceClient :: Read Organization Information (unq7434e5235fbdee119073002248d83 version: 9.2.25081.188)
2025-08-20 19:59:07.9855 | INF | bolt.cli.CdsClientConnector :: Connected to CDS Org: SelectedOrganizationInfo { OrganizationId = 7434e523-5fbd-ee11-9073-002248d8354b, EnvironmentUrl = https://eycrm-salescopilotdev.crm16.dynamics.com/, UniqueName = unq7434e5235fbdee119073002248d83, FriendlyName = XSL-GE-SALESCOPILOTDEV-EYCRM, EnvironmentIdentifier = 99710406-609e-eb97-b6fe-b957339aa344, Geo = GER }
2025-08-20 19:59:07.9855 | WRN | bolt.cli.TelemetryImplementation.LoggingGeoLocationMapper :: TryMapLocationToGeo missing mapping from location 'GER' to GeoShortCode.
2025-08-20 19:59:08.0095 | INF | bolt.dataverse.client.actions.WhoAmIAction :: Executing WhoAmIAction
2025-08-20 19:59:08.5072 | INF | bolt.cli.EnvironmentResolver :: ResolveEnvironmentLookupSpecAsync: Using the environment configured in the auth profile as it matches the desired environment.
2025-08-20 19:59:08.7562 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.70.0.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2025-08-20 19:59:08Z] [MSAL:0001] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1059 MsaDeviceOperationProvider is not available. Not attempting to register the device.
2025-08-20 19:59:08.7562 | INF | bolt.dataverse.client.actions.WhoAmIAction :: WhoAmIAction execution is complete
2025-08-20 19:59:08.9440 | INF | bolt.cli.CommandProcessor :: EndExecutingVerb (Success: True, Execution Time(ms): 632)
2025-08-20 19:59:08.9753 | INF | bolt.cli.CommandProcessor :: StartExecutingVerb (Verbs: ["auth","who"])
2025-08-20 19:59:08.9753 | INF | bolt.cli.Verb :: Executing verb 'auth who' with no arguments.
2025-08-20 19:59:08.9753 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Getting auth profile with following options: { AuthKind = UNIVERSAL, IsRequired = True, ShowProfileMessages = True, VerbDisableAutoOSLogin = False, SkipValidation = False }
2025-08-20 19:59:08.9753 | INF | bolt.cli.CommandLine.VerbExecutor :: PerformAuthenticationAsync - Using auth profile: { Kind = UNIVERSAL, ProfileType = OperatingSystem, AadObjectId = 10e6b741-3177-4bad-887b-f45a7926a00d, CloudInstance = Public, TenantId = 5b973f99-77df-4beb-b27d-aa0c70b8482c, User = XXX@YY.com }
2025-08-20 19:59:09.1324 | WRN | Microsoft.Identity.Client.IPublicClientApplication :: True MSAL 4.70.0.0 MSAL.Desktop 4.8 or later Windows 10 Enterprise [2025-08-20 19:59:09Z - b424f78a-aa43-4911-bde9-8081e09fc3d5] [CalculateSuggestedCacheExpiry] No access tokens or refresh tokens found in the accessor. Not returning any expiration.
2025-08-20 19:59:09.2540 | INF | bolt.cli.CommandProcessor :: EndExecutingVerb (Success: True, Execution Time(ms): 274)
2025-08-20 19:59:09.3189 | INF | bolt.authentication.store.AuthTokenStore :: Successfully acquired a token using profile of type OperatingSystem for scope 'https://eycrm-salescopilotdev.crm16.dynamics.com//.default'
2025-08-20 19:59:09.3345 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: Start processing HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'PowerVirtualAgents'
2025-08-20 19:59:09.3501 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Sending HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'PowerVirtualAgents'
2025-08-20 19:59:09.7939 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Received HTTP response headers after 426.1206ms - 200
2025-08-20 19:59:09.7939 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: End processing HTTP request after 466.6985ms - 200
2025-08-20 19:59:09.7939 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 1262ms, GET, https://eycrm-salescopilotdev.crm16.dynamics.com/, api/data/v9.2/solutions?$filter=uniquename eq 'PowerVirtualAgents', x-ms-service-request-id: 9496f715-26cf-42ea-be48-42ee9f1dfbf2:

2025-08-20 19:59:09.7939 | INF | bolt.authentication.http.AuthenticatedHttpClient :: Response code: OK Getting response body
2025-08-20 19:59:09.8172 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: Start processing HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/bots?$select=botid,schemaname,name
2025-08-20 19:59:09.8172 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Sending HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/bots?$select=botid,schemaname,name
2025-08-20 19:59:09.9452 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Received HTTP response headers after 132.5268ms - 200
2025-08-20 19:59:09.9452 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: End processing HTTP request after 135.1478ms - 200
2025-08-20 19:59:09.9452 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 135ms, GET, https://eycrm-salescopilotdev.crm16.dynamics.com/, api/data/v9.2/bots?$select=botid,schemaname,name, x-ms-service-request-id: def552c7-6e67-4d13-be0e-e047e553e19a:

2025-08-20 19:59:09.9452 | INF | bolt.authentication.http.AuthenticatedHttpClient :: Response code: OK Getting response body
2025-08-20 19:59:09.9608 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: Start processing HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'dvtablesearch'
2025-08-20 19:59:09.9608 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Sending HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'dvtablesearch'
2025-08-20 19:59:10.0722 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Received HTTP response headers after 113.8742ms - 200
2025-08-20 19:59:10.0722 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: End processing HTTP request after 115.8053ms - 200
2025-08-20 19:59:10.0722 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 116ms, GET, https://eycrm-salescopilotdev.crm16.dynamics.com/, api/data/v9.2/solutions?$filter=uniquename eq 'dvtablesearch', x-ms-service-request-id: ccdaeead-872c-45e6-9eab-e99f6802e90e:

2025-08-20 19:59:10.0722 | INF | bolt.authentication.http.AuthenticatedHttpClient :: Response code: OK Getting response body
2025-08-20 19:59:10.0889 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: Start processing HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'msdyn_RelevanceSearch'
2025-08-20 19:59:10.0889 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Sending HTTP request GET https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.2/solutions?$filter=uniquename%20eq%20'msdyn_RelevanceSearch'
2025-08-20 19:59:10.1990 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Received HTTP response headers after 119.6808ms - 200
2025-08-20 19:59:10.1990 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: End processing HTTP request after 122.7533ms - 200
2025-08-20 19:59:10.1990 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 123ms, GET, https://eycrm-salescopilotdev.crm16.dynamics.com/, api/data/v9.2/solutions?$filter=uniquename eq 'msdyn_RelevanceSearch', x-ms-service-request-id: fedb49d4-d1df-4497-aaa8-714a9b65f66a:

2025-08-20 19:59:10.1990 | INF | bolt.authentication.http.AuthenticatedHttpClient :: Response code: OK Getting response body
2025-08-20 19:59:10.3817 | INF | Microsoft.Bot.Platform.Content.Internal.Dataverse.Http.DataverseClient :: Retry on socket exception is disabled, No retry on socketexception will be attempted
2025-08-20 19:59:10.3817 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: Start processing HTTP request POST https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.1/$batch
2025-08-20 19:59:10.3817 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Sending HTTP request POST https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.1/$batch
2025-08-20 19:59:11.7716 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.ClientHandler :: Received HTTP response headers after 1385.1097ms - 200
2025-08-20 19:59:11.7716 | INF | System.Net.Http.HttpClient.eycrm-salescopilotdev.crm16.dynamics.com.LogicalHandler :: End processing HTTP request after 1386.988ms - 200
2025-08-20 19:59:12.0383 | INF | bolt.authentication.http.AuthenticatedHttpClient :: HTTP call succeeded: 1651ms, POST, https://eycrm-salescopilotdev.crm16.dynamics.com/, https://eycrm-salescopilotdev.crm16.dynamics.com/api/data/v9.1/$batch, x-ms-service-request-id: 2fa9881d-6b8d-4de0-a1da-9d6fb92dd5bd:

2025-08-20 19:59:14.3511 | INF | bolt.cli.CommandProcessor :: EndExecutingVerb (Success: False, Execution Time(ms): 577)
2025-08-20 19:59:14.3668 | FTL | bolt.Session :: Unable to cast object of type 'Microsoft.Bot.ObjectModel.Internal.UnknownBotElementGreen' to type 'Microsoft.Bot.ObjectModel.Internal.DialogBaseGreen'.|EXCEPTION: System.InvalidCastException: Unable to cast object of type 'Microsoft.Bot.ObjectModel.Internal.UnknownBotElementGreen' to type 'Microsoft.Bot.ObjectModel.Internal.DialogBaseGreen'.
at Microsoft.Bot.ObjectModel.Yaml.YamlSerializer.DeserializeGreenFromDataverse[T](TextReader data)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadYamlStringContent[T](Utf8JsonReader& reader, JsonSerializerOptions jsonOptions)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadDialogComponent(Utf8JsonReader& reader, JsonSerializerOptions jsonOptions)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadWithFallback[T](Utf8JsonReader& reader, JsonSerializerOptions jsonOptions, ReaderMethod1 primaryReader, ReaderMethod1 fallbackReader)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadBotComponentBase(Utf8JsonReader& reader, JsonSerializerOptions options)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.ArrayConverter2.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.PopulatePropertiesFastPath(Object obj, JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.DeserializeAsObject(Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadAsObject(Utf8JsonReader& reader, JsonTypeInfo jsonTypeInfo)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.BatchResponses.BatchResponseReader.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Bot.Platform.Content.Internal.Dataverse.BatchResponses.BatchResponseReader.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.BatchResponses.BatchResponseReader.d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.Http.DataverseClient.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.Http.DataverseClient.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.DataverseContentManager.d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.DataverseContentManager.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.ContentAuthoringService.<>c__DisplayClass11_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.<>c__DisplayClass8_1.<b__2>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.<>c__DisplayClass11_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at bolt.cli.CommandProcessor.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandProcessor.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.ModeManager.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.Session.d__14.MoveNext()
2025-08-20 19:59:14.3668 | ERR | bolt.Session :: at Microsoft.Bot.ObjectModel.Yaml.YamlSerializer.DeserializeGreenFromDataverse[T](TextReader data)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadYamlStringContent[T](Utf8JsonReader& reader, JsonSerializerOptions jsonOptions)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadDialogComponent(Utf8JsonReader& reader, JsonSerializerOptions jsonOptions)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadWithFallback[T](Utf8JsonReader& reader, JsonSerializerOptions jsonOptions, ReaderMethod1 primaryReader, ReaderMethod1 fallbackReader)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.DataverseODataReader.ReadBotComponentBase(Utf8JsonReader& reader, JsonSerializerOptions options)
at Microsoft.Bot.ObjectModel.Dataverse.Internal.ArrayConverter2.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.PopulatePropertiesFastPath(Object obj, JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.DeserializeAsObject(Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadAsObject(Utf8JsonReader& reader, JsonTypeInfo jsonTypeInfo)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.BatchResponses.BatchResponseReader.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Bot.Platform.Content.Internal.Dataverse.BatchResponses.BatchResponseReader.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.BatchResponses.BatchResponseReader.d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.Http.DataverseClient.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.Http.DataverseClient.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.DataverseContentManager.d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.Dataverse.DataverseContentManager.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Platform.Content.Internal.ContentAuthoringService.<>c__DisplayClass11_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.<>c__DisplayClass8_1.<b__2>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandLine.VerbExecutor.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.<>c__DisplayClass11_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.Verb.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at bolt.cli.CommandProcessor.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.CommandProcessor.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.cli.ModeManager.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at bolt.Session.d__14.MoveNext()
2025-08-20 19:59:14.3668 | INF | bolt.Session :: End session. (sessionId: 4fbf56fc-02ef-436e-8761-faf4b79b13eb; ResponseCode: 500)

Extension version: 2.0.78
VS Code version: Code 1.103.1 (360a4e4fd251bfce169a4ddf857c7d25d1ad40da, 2025-08-12T16:25:40.542Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs AMD EPYC 7763 64-Core Processor (4 x 2445)
GPU Status 2d_canvas: unavailable_software
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg) undefined
Memory (System) 15.95GB (4.34GB free)
Process Argv --crash-reporter-id cb6ceb78-14b0-4ecd-8b19-14fe63cd4747
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
747dc170:31275177
6518g693:31334701
aj953862:31281341
9d2cg352:31346308
convertlamdat:31368659
nesew2to5:31336538
0g1h6703:31332163
agentclaude:31335814
nes-set-on:31340697
63221493:31336333
0927b901:31350571
4gdec884:31348710
custommodelcf:31371783
45650338:31358607
0cj2b977:31352657
asdad:31365766
gemagent1:31368469
cloudbuttonc:31368503
retryenabled:31370050

s too large to send. Please paste.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions