"Cannot reference variable" error when publishing a Copilot Studio survey agent

This article provides a solution to an issue that occurs when you try to publish a Microsoft Copilot Studio survey agent. The publishing fails with an error that points to the Conversation Start topic.

Symptoms

As an administrator, when you try to publish a Copilot Studio survey agent, the following error appears:

Cannot reference variable from component 'msdyn_dataverse_mcs_survey_connectionreference'

Screenshot of the error when you publish the Copilot Studio survey agent.

Cause

This issue is caused by an incorrectly configured connection reference.

Resolution

To resolve this error, follow these steps to manually re-create the step where the error occurred:

  1. Remove the erroneous step, and then re-create it using the Perform an unbound action in selected environment connector.

    Screenshot that shows how to create a new step by using the Perform an unbound action in selected environment connector.

  2. Add the following details:

    • Environment: (Current)
    • Action Name: msdyn_SaveMicrosoftCopilotStudioSurveyResponse
    • InputParams: JsonPayload

    Screenshot of the fields that must be filled for the Connector action.

  3. Save and publish the survey agent.

Configure feedback surveys using Copilot Studio (preview)