-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Describe the bug
I have a copilot studio agent using Dataverse as knowledge source (6 tables). I am trying to run: pac copilot extract-template, but I get the following error in pac-log.txt:
| FTL | bolt.Session :: Unknown knowledgeSources type|EXCEPTION: System.ArgumentException: Unknown knowledgeSources type
To Reproduce
Steps to reproduce the behavior:
- Create an agent
- Add Dataverse as knowledge source
- Save and publish
- Run pac copilot extract-template with the environment and bot ids, templateVersion 1.0.0
Expected behavior
I expect to get the yaml file with the results
Desktop (please complete the following information):
- OS: Windows 10
- Browser Edge
- Version 139.0.3405.102 (Official build) (64-bit)
Additional context
Here is the full error message:
| FTL | bolt.Session :: Unknown knowledgeSources type|EXCEPTION: System.ArgumentException: Unknown knowledgeSources type
at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.AddKSComponent(KnowledgeSourceComponent ks, JsonObject manifest)
at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.ExtractKSCompontnts(BotDefinition botWithNewName, JsonObject manifest)
at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.ExtractManifest(BotDefinition botWithNewName, JsonObject manifest)
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-22 09:33:07.2057 | ERR | bolt.Session :: at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.AddKSComponent(KnowledgeSourceComponent ks, JsonObject manifest)
at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.ExtractKSCompontnts(BotDefinition botWithNewName, JsonObject manifest)
at bolt.module.copilot.verbs.CopilotExtractTemplateVerb.ExtractManifest(BotDefinition botWithNewName, JsonObject manifest)
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()