🐞 Bug: pac copilot create fails with missing connectionreference record #1287
ncbsharepointer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Title
pac copilot createfails with "A record with the specified key values does not exist in connectionreference entity"Description
I am attempting to clone a Copilot Studio bot using the PAC CLI. I successfully extracted the template using
extract-template, but when running thecreatecommand to generate the new bot, it fails with a connection reference error.It appears the CLI is attempting to validate or bind a Connection Reference defined in the extracted template that does not exist in the target solution/environment yet, preventing the bot creation entirely.
Reproduction Steps
pac copilot extract-templateon an existing bot that has connection references (e.g. Dataverse).pac copilot createusing the generated template file.Command Executed
pac copilot create --schemaName [NewSchemaName] --templateFileName NewTestCopilot.yaml --displayName "Replica Copilot" --solution [SolutionName] --environment [EnvironmentGUID]
Console Output & Error
Additional Context
YAML Template Context
The extracted YAML template contains the following
connectorsblock in thespecsection, which seems to trigger the validation error during creation:Expected Behavior:
The CLI should create the bot structure and allow the connection references to be broken or empty, rather than failing the entire creation process due to a missing reference record in the target solution.
Beta Was this translation helpful? Give feedback.
All reactions