Skip to content

Commit 8e2a4b7

Browse files
committed
revise structure
1 parent ad4eb4e commit 8e2a4b7

1 file changed

Lines changed: 26 additions & 85 deletions

File tree

support/power-platform/copilot-studio/authoring/error-codes.md

Lines changed: 26 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,11 @@ As an agent maker, if a problem occurs when you use the test pane to [test your
7777

7878
- Expected: `{ExpectedType}`. Actual: `{ActualType}`.
7979

80-
**Resolution:** This error occurs when a prompt action receives incorrect input or returns unexpected output types.
80+
**Resolution:** This error occurs when a prompt action receives incorrect input or returns unexpected output types. To resolve, take one of the following actions based on the error:
8181

82-
**Common causes and fixes:**
83-
84-
- **Type mismatch:** The prompt's output type doesn't match what's expected. Check your prompt configuration to ensure the output schema matches the expected variable type.
85-
86-
- **Missing required input:** A required input parameter wasn't provided. Verify that all required inputs are connected to variables with values.
87-
88-
- **Blank required value:** A required input was provided but its value is blank. Ensure the variable has a value before calling the prompt.
82+
- _Type mismatch:_ Check your prompt configuration to ensure the output schema matches the expected variable type.
83+
- _Missing required input:_ Verify that all required inputs are connected to variables with values.
84+
- _Blank required value:_ Ensure the variable has a value before calling the prompt.
8985

9086
For more information, see [Create a prompt action](/ai-builder/use-a-custom-prompt-in-mcs#create-a-prompt-action).
9187

@@ -111,18 +107,10 @@ For more information, see [Create a prompt action](/ai-builder/use-a-custom-prom
111107

112108
- Integrated authentication is not supported in channel `{channel}`.
113109

114-
**Resolution:** This error occurs when your agent uses actions or features that require user authentication, but authentication hasn't been configured.
115-
116-
**To resolve:**
110+
**Resolution:** This error occurs when your agent uses actions or features that require user authentication, but authentication hasn't been configured. To resolve:
117111

118112
1. In your agent, go to **Settings > Security > Authentication**.
119-
120-
1. Select one of the appropriate authentication methods:
121-
122-
- **Authenticate with Microsoft** for Microsoft 365 users
123-
124-
- **Authenticate manually** for custom OAuth providers
125-
113+
1. Select an appropriate authentication method: **Authenticate with Microsoft** for Microsoft 365 users, or **Authenticate manually** for custom OAuth providers.
126114
1. If the error mentions a specific channel, verify that the channel supports the authentication method you're using. Some channels don't support integrated authentication.
127115

128116
For more information, see [Configure user authentication](/microsoft-copilot-studio/configuration-end-user-authentication).
@@ -131,48 +119,29 @@ For more information, see [Configure user authentication](/microsoft-copilot-stu
131119

132120
**Error message:** Your connected agent with schema name `{AgentSchemaName}` has an authentication mismatch with the main agent.
133121

134-
**Resolution:** The orchestrator agent and connected sub-agent have different authentication configurations. For multi-agent orchestration to work, both agents must use compatible authentication settings.
135-
136-
**To resolve:**
122+
**Resolution:** The orchestrator agent and connected sub-agent have different authentication configurations. For multi-agent orchestration to work, both agents must use compatible authentication settings. To resolve:
137123

138124
1. Open both agents and go to **Settings > Security > Authentication**.
139-
140125
1. Ensure both agents use the same authentication method (for example, both use **Authenticate with Microsoft**).
141-
142126
1. If using manual authentication, ensure both agents are configured with the same OAuth provider and settings.
143127

144-
**Important:** The following authentication compatibility rules apply:
128+
The following authentication compatibility rules apply:
145129

146130
- If the connected agent has _no authentication_ configured, any orchestrator authentication is acceptable.
147-
148131
- If the connected agent _requires authentication_, the orchestrator must use the _same_ authentication method.
149-
150132
- **Manual authentication (Generic OAuth2)** on the orchestrator is _not compatible_ with connected agents that require authentication. Both agents must use the same manual authentication configuration or the connected agent must have no authentication requirement.
151133

152-
**Common scenarios that cause this error:**
153-
154-
- Orchestrator uses **Authenticate with Microsoft** but the connected agent uses manual OAuth
155-
156-
- Orchestrator uses manual OAuth but connected agent uses **Authenticate with Microsoft**
157-
158-
- Connected agent requires authentication but orchestrator has no authentication configured
159-
160134
For more information, see [Configure user authentication](/microsoft-copilot-studio/configuration-end-user-authentication) and [Use agents as actions in other agents (preview)](/microsoft-copilot-studio/advanced-use-dispatcher).
161135

162136
#### ConnectedAgentBotNotFound
163137

164138
**Error message:** Connected agent with schema name {AgentSchemaName} not found.
165139

166-
**Resolution:** This error occurs in multi-agent orchestration when the orchestrator agent can't find a connected sub-agent.
167-
168-
**To resolve:**
140+
**Resolution:** This error occurs in multi-agent orchestration when the orchestrator agent can't find a connected sub-agent. To resolve:
169141

170142
1. Verify the connected agent exists in the same environment as the orchestrator agent.
171-
172143
1. Ensure the connected agent's schema name is spelled correctly in the orchestrator configuration.
173-
174144
1. Check that you have access permissions to the connected agent.
175-
176145
1. If the connected agent was recently created, wait a few minutes and try again.
177146

178147
For more information, see [Use agents as actions in other agents (preview)](/microsoft-copilot-studio/advanced-use-dispatcher).
@@ -181,14 +150,10 @@ For more information, see [Use agents as actions in other agents (preview)](/mic
181150

182151
**Error message:** Connected agent with schema name `{AgentSchemaName}` needs to be published to be invoked.
183152

184-
**Resolution:** The connected sub-agent must be published before it can be invoked by the orchestrator agent.
185-
186-
**To resolve:**
153+
**Resolution:** The connected sub-agent must be published before it can be invoked by the orchestrator agent. To resolve:
187154

188155
1. Open the connected agent in Copilot Studio.
189-
190156
1. Publish the agent.
191-
192157
1. Return to the orchestrator agent and test again.
193158

194159
For more information, see [Use agents as actions in other agents (preview)](/microsoft-copilot-studio/advanced-use-dispatcher).
@@ -197,14 +162,10 @@ For more information, see [Use agents as actions in other agents (preview)](/mic
197162

198163
**Error message:** Agent chaining detected. Your agent cannot be connected to agent with schema name `{AgentSchemaName}` as it already has a connected agent.
199164

200-
**Resolution:** Multi-level agent chaining isn't supported. An orchestrator agent can connect to sub-agents, but those sub-agents can't have their own connected agents.
201-
202-
**To resolve:**
165+
**Resolution:** Multi-level agent chaining isn't supported. An orchestrator agent can connect to sub-agents, but those sub-agents can't have their own connected agents. To resolve:
203166

204167
1. Review your agent architecture and flatten the hierarchy.
205-
206168
1. Move the functionality from deeply nested agents into either the orchestrator or first-level connected agents.
207-
208169
1. Consider using topics or actions instead of additional connected agents.
209170

210171
For more information, see [Use agents as actions in other agents (preview)](/microsoft-copilot-studio/advanced-use-dispatcher).
@@ -213,18 +174,12 @@ For more information, see [Use agents as actions in other agents (preview)](/mic
213174

214175
**Error message:** No GPT component found for connected agent with schema name `{AgentSchemaName}`.
215176

216-
**Resolution:** The connected agent is missing required description or instructions that enable it to be invoked by an orchestrator agent.
217-
218-
**To resolve:**
177+
**Resolution:** The connected agent is missing required description or instructions that enable it to be invoked by an orchestrator agent. To resolve:
219178

220179
1. Open the connected agent in Copilot Studio.
221-
222180
1. Go to the agent's **Overview** page.
223-
224181
1. Ensure the agent has a clear **Description** and **Instructions** configured.
225-
226182
1. Publish the connected agent after making changes.
227-
228183
1. Return to the orchestrator agent and test again.
229184

230185
For more information, see [Use agents as actions in other agents (preview)](/microsoft-copilot-studio/advanced-use-dispatcher).
@@ -233,28 +188,20 @@ For more information, see [Use agents as actions in other agents (preview)](/mic
233188

234189
**Error message:** Power Fx expression evaluation failed: {ErrorDetails}
235190

236-
**Resolution:** A Power Fx expression used in a connector action failed to evaluate correctly.
237-
238-
**Common causes and fixes:**
239-
240-
- **Syntax error:** Check your Power Fx expression for typos or incorrect syntax.
241-
242-
- **Type mismatch:** Ensure the data types in your expression are compatible (for example, don't compare text to numbers without conversion).
243-
244-
- **Null or blank values:** Add error handling for cases where variables might be blank. Use functions like `IsBlank()`, `Coalesce()`, or `IfError()`.
245-
246-
- **Invalid function usage:** Verify that functions are used with the correct number and type of arguments.
247-
248-
**To resolve:**
191+
**Resolution:** A Power Fx expression used in a connector action failed to evaluate correctly. To resolve:
249192

250193
1. Open the topic containing the connector action.
251-
252194
1. Review the Power Fx expressions in the action's input parameters.
253-
254195
1. Test the expressions with sample data to identify the issue.
255-
256196
1. Use the formula bar's error indicators to locate specific problems.
257197

198+
Common causes include:
199+
200+
- Syntax errors
201+
- Type mismatches (such as comparing text to numbers without conversion)
202+
- Null or blank values (use functions like `IsBlank()`, `Coalesce()`, or `IfError()` for handling)
203+
- Invalid function usage
204+
258205
For more information, see [Use Power Fx in Copilot Studio](/microsoft-copilot-studio/advanced-power-fx).
259206

260207
#### ContentError
@@ -289,22 +236,16 @@ Common problems include:
289236

290237
**Error message:** Conversation state size exceeds the maximum allowed limit.
291238

292-
**Resolution:** The conversation has accumulated too much data in its state, exceeding the allowed size limits.
293-
294-
**To resolve:**
295-
296-
1. **Reduce variable data:** Review your topics and reduce the amount of data stored in variables during the conversation.
239+
**Resolution:** The conversation has accumulated too much data in its state, exceeding the allowed size limits. To resolve:
297240

298-
1. **Clear unused variables:** Set variables to blank when they're no longer needed.
241+
1. Reduce variable data by reviewing your topics and reducing the amount of data stored in variables during the conversation.
242+
1. Clear unused variables by setting them to blank when they're no longer needed.
243+
1. Simplify conversation flows by breaking complex conversations into smaller, more focused interactions.
244+
1. Avoid storing large JSON objects, arrays, or text blocks in conversation variables.
299245

300-
1. **Simplify conversation flows:** Break complex conversations into smaller, more focused interactions.
301-
302-
1. **Avoid storing large objects:** Don't store large JSON objects, arrays, or text blocks in conversation variables.
303-
304-
**Prevention tips:**
246+
To prevent this error:
305247

306248
- Use variables only for data that needs to persist across topics.
307-
308249
- Consider using Power Automate flows to store and retrieve large data from external sources instead of keeping it in conversation state.
309250

310251
For more information, see [Copilot Studio quotas and limits](/microsoft-copilot-studio/requirements-quotas).

0 commit comments

Comments
 (0)