Skip to content

Commit a0442d4

Browse files
committed
initial copy over for new docs
1 parent 7fabdc5 commit a0442d4

12 files changed

Lines changed: 1040 additions & 0 deletions
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: "Troubleshoot connector request failure"
3+
description: "Troubleshoot connector request failure due to too much returned data using filtering."
4+
ms.date: 10/16/2024
5+
ms.topic: troubleshooting
6+
ms.custom: guidance
7+
ms.author: peterswimm
8+
ms.reviewer: erickinser
9+
manager: kjette
10+
author: peterswimm
11+
---
12+
13+
# Connector request failure
14+
15+
When using connector actions with custom agents, you may encounter an HTTP error code 400 with the message _Error Code: 400, Error Message: Bad Request_. This error occurs when the request from the connector to the service returns too much data. Copilot Studio limits connector responses to 500 KB. This may happen whether the connector is configured for a specific topic or as an agent-wide action.
16+
17+
If you experience this issue, you need to take steps to filter the responses returned to the connector. You can do this by configuring the inputs to the connector action so that the service returns only the data the agent really needs to respond to the user's request.
18+
19+
## How to resolve
20+
21+
Each connector action has a set of inputs and outputs. Most connectors include inputs that can be used to filter the data request.
22+
The details of this will vary from connector to connector. You can view information for specific connectors in the [connectors documentation](/connectors/).
23+
24+
For example, suppose you are using a connector to ServiceNow with the [getKnowledgeArticles](/connectors/service-now/#get-knowledge-articles) action enabled.
25+
26+
This action has a `Filter` input parameter that you can use to enter a filter query to limit the data returned by the service. You can also use the `Limit` input parameter to limit the number of records returned to the top few results.
27+
28+
These inputs can be configured in Copilot Studio. The configuration details depend on whether the connector action is configured as an agent-wide action or as a topic-specific connector action.
29+
30+
### Agent-wide action
31+
32+
To configure for an agent-wide action, follow these steps:
33+
34+
1. Under **Agents**, select the agent with the connector you want to configure.
35+
36+
1. Select **Actions** to see the list of actions associated with the agent.
37+
38+
1. Select the action you want to configure from the list of actions.
39+
40+
1. Select **Inputs** and edit the information for the input field you want to configure.
41+
42+
### Topic-specific connector action
43+
44+
To configure for a topic-specific connector action, follow these steps:
45+
46+
1. Under **Agents**, select the agent with the connector you want to configure.
47+
48+
1. Select **Topics** to see the list of topics for the agent.
49+
50+
1. Select the topic you want to configure. You can see the canvas for the topic flow.
51+
52+
1. On the canvas select the connector node for the connector you want to configure.
53+
54+
The typical inputs that are identified from the user input are displayed under **Inputs**.
55+
56+
1. Select **Advanced inputs** to access configurations for additional inputs.
57+
58+
1. Configure the inputs as needed to filter your responses.

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

Lines changed: 249 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: "Troubleshoot voice-enabled agents and diagnose runtime error codes"
3+
description: "Reference to troubleshoot voice agent runtime error codes and other issues."
4+
ms.reviewer: erickinser
5+
ms.date: 02/26/2025
6+
ms.topic: how-to
7+
author: sophie-roy3
8+
ms.author: sophieroy
9+
manager: kjette
10+
ms.service: copilot-studio
11+
---
12+
13+
# Troubleshoot voice-enabled agents and diagnose runtime error codes
14+
15+
This article covers troubleshooting guidance for possible issues with your voice-enabled agent, along with runtime error codes you might encounter.
16+
17+
## Unable to turn on Optimize for voice
18+
19+
The **Optimize for voice** setting can't be turned on if the the Power Platform environment hosting the agent is configured to use the **Get new features early** setting. Voice-enabled agents are only supported in **Standard** environments. If you're unable to turn **Optimize for voice**, check your environment and ensure that **Get new features only** is turned off. For more information, see [Early release cycle environments](/power-platform/admin/early-release).
20+
21+
## Callers can't engage with a published agent
22+
23+
**Issue**: After a maker configures a phone number and workstream for a published agent through Dynamics 365 Customer Service, callers only hear hold music or silence, and can't engage with the agent.
24+
25+
**Suggested solution**: Disconnect and reconnect the Telephony channel and Dynamics 365 Customer Service customer engagement hub in Copilot Studio.
26+
27+
**Steps**:
28+
29+
1. In Copilot Studio, go to **Channels > Telephony** and select **Turn off telephony**.
30+
31+
:::image type="content" source="media/voice/voice-telephony-channel-turn-off-telephony.png" alt-text="Screenshot of the Telephony channel, highlighting the Turn off telephony button.":::
32+
33+
>[!NOTE]
34+
>If there's an error message after selecting the button, ignore the message, and refresh the page. The Telephony channel should be turned off afterward.
35+
36+
1. Select **Turn on telephony**.
37+
38+
:::image type="content" source="media/voice/voice-telephony-channel-turn-on-telephony.png" alt-text="Screenshot of the Telephony channel, highlighting the Turn on telephony button.":::
39+
40+
1. Go to **Channels > Customer engagement hub > Dynamics 365 Customer Service** and select **Disconnect**.
41+
42+
:::image type="content" source="media/voice/voice-channels-dynamics-365-customer-service-disconnect.png" alt-text="Screenshot of the Dynamics 365 Customer Service customer engagement hub, highlighting the Disconnect button.":::
43+
44+
1. Select **Connect**.
45+
46+
:::image type="content" source="media/voice/voice-channels-dynamics-365-customer-service-connect.png" alt-text="Screenshot of the Dynamics 365 Customer Service customer engagement hub, highlighting the Connect button.":::
47+
48+
## Can't publish an agent or configure the Telephony channel
49+
50+
**Issue**: Maker can't publish an agent or configure the Telephony channel.
51+
52+
:::image type="content" source="media/voice/voice-channels-telephony-disabled.png" alt-text="Screenshot of the telephony channel being disabled, along with error status messages.":::
53+
54+
**Suggested solution**: If you're unable to publish your agent, or if the Telephony channel is disabled, contact your Power Platform admin and ask them to review the data policies in your tenant.
55+
56+
**Steps**: In the Power Platform admin center, the tenant admin can unblock the needed data policies. See [Data policy example - Block channels to disable agent publish](dlp-example-6.md).
57+
58+
## Voice-enabled agent runtime error codes
59+
60+
Voice: `CopilotNotResponseWithMessageBack`
61+
62+
Error Message: The agent processed the user's message but didn't respond with a message.
63+
64+
Resolution: Make sure all your topics send a message out or end conversation/hangup/transfer the call in the end.
65+
66+
Voice: `HandoffInvalidSipHeader`
67+
68+
Error Message: The SIP header in the transfer activity contains unsupported characters, check the documents. The invalid SIP header value is `{sip header value}`.
69+
70+
Resolution: Check your SIP header value and make sure that it’s correct.
71+
72+
For more information, see [Understand error codes](error-codes.md).
73+
74+
## Related content
75+
76+
- [Test your voice-enabled agent](voice-test.md)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Debug insights when generative answers don't return a response"
3+
description: "Troubleshoot your agent when generative answers don't return results by using debug insights in Microsoft Copilot Studio."
4+
ms.date: 06/17/2025
5+
ms.topic: troubleshooting
6+
ms.custom: guidance
7+
ms.author: mboninco
8+
ms.reviewer: erickinser
9+
manager: kjette
10+
author: iaanw
11+
---
12+
13+
# Debug insights when generative answers don't return a response
14+
15+
Generative answers allow makers to create agents that respond to questions grounded in knowledge sources, like public websites or SharePoint. However, sometimes the agent doesn't provide a response. When an agent doesn't return a result, the test chat's debug mode provides insights on why a response wasn't returned.
16+
17+
## Debug insights in the test chat
18+
19+
When debug mode is enabled, insights are displayed in the test chat when the generative answers feature doesn't return any results for a query. Debug insights only show in the test chat and aren't shown to users in a published agent.
20+
21+
When there's no response, a debug insight appears in the test chat and provides an indication why no response was provided. If applicable, a suggested action to improve the likelihood that a response is returned is given.
22+
23+
:::image type="content" source="media/debug-insights/content-moderation.png" alt-text="Screenshot showing a debug insight when a response was filtered due to content moderation.":::
24+
25+
## Disable debug insights
26+
27+
Debug insights are enabled by default. To stop the display of debug insights, select the three dots at the top of the test panel and turn off **Debug mode**.
28+
29+
### Related content
30+
31+
- [Generative answers pointing to SharePoint sources don't return results](generative-answers-sharepoint-no-response.md)
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: "Generative answers pointing to SharePoint sources don't return results"
3+
description: "Troubleshoot why generative answers nodes configured to use SharePoint knowledge sources don't return results."
4+
author: adilei
5+
ms.date: 07/01/2025
6+
ms.topic: troubleshooting
7+
ms.author: adileibowitz
8+
ms.reviewer: erickinser
9+
ms.custom:
10+
- guidance
11+
- sfi-image-nochange
12+
---
13+
14+
# Generative answers pointing to SharePoint sources don't return results
15+
16+
Generative answers allow makers to create agents that respond to questions grounded in data sources, like public websites or SharePoint, by pointing the agent at those data sources. However, sometimes the agent doesn't provide a response and instead returns something like **'I'm not sure how to help with that. Can you try rephrasing?'** (The actual message depends on the implementation.)
17+
18+
When a SharePoint data source is configured, there could be several different factors preventing the **Create generative answers** node from returning a response, such as those described in the following sections.
19+
20+
> [!Note]
21+
> Before continuing, please make sure you have followed the instructions on how to [set up generative answers over SharePoint](nlu-boost-node.md).
22+
>
23+
> For better search results, we recommend a Microsoft 365 Copilot license within the same tenant as your agent.
24+
25+
## Search results are missing
26+
27+
When Copilot Studio searches SharePoint, only the top three search results are used to summarize and generate a response. If no search results are returned, the generative answers node doesn't provide a response.
28+
29+
### How to fix
30+
31+
1. Ensure that your Create generative answers node points to a SharePoint location with relevant content.
32+
33+
1. Only documents in [supported formats](nlu-boost-node.md#supported-content) are used to generate responses.
34+
35+
> [!Note]
36+
> Only modern SharePoint pages are supported.
37+
38+
1. It's possible that documents were only recently uploaded to SharePoint, but have yet to be indexed. It's also possible that there are settings that prevent some sites from appearing in search results. For more information, see [Search results missing in SharePoint Online](/sharepoint/troubleshoot/search/search-results-missing).
39+
40+
## Missing user permissions
41+
42+
Generative answers over SharePoint rely on [delegated permissions](nlu-boost-node.md#authentication) when searching. At a minimum, a user must have read permissions on the relevant sites and files, or no search results will be returned.
43+
44+
If the user is missing permissions, no results are returned, nor any errors or exceptions. For a user with no permissions, it appears as if no documents were found.
45+
46+
### How to fix
47+
48+
Amend permissions so users can access the relevant sites and files. For more information, see [Sharing and permissions in the SharePoint modern experience](/sharepoint/modern-experience-sharing-permissions).
49+
50+
## The app registration or agent are misconfigured
51+
52+
When admins configure generative answers over SharePoint, admins are expected to set up authentication with a Microsoft Entra ID, and configure [extra scopes](configuration-end-user-authentication.md#authenticate-manually). If scopes are missing from the app registration or from the agent authentication settings, or if consent wasn't granted to the required scopes, no results are returned, nor any errors or exceptions. For a user, it appears as if no documents were found.
53+
54+
### How to fix
55+
56+
Add the necessary scopes to the App Registration and/or the agent's authentication settings, and grant consent.
57+
58+
The following example is a reference to a well configured app registration:
59+
60+
:::image type="content" source="media/generative-answers/app-registration.png" alt-text="Screenshot of app registration permissions.":::
61+
62+
The following example shows the required authentication settings in Copilot Studio:
63+
64+
:::image type="content" source="media/generative-answers/copilot-auth.png" alt-text="Screenshot showing Copilot Studio authentication settings.":::
65+
66+
## File size support
67+
68+
For SharePoint sources, if you don't have a Microsoft 365 Copilot license in the same tenant as your agent, generative answers can only process files up to 7 MB in size. You must also turn off the [Enhanced search results](knowledge-copilot-studio.md#tenant-graph-grounding) feature.
69+
70+
If you have a Microsoft 365 Copilot license in the same tenant as your agent, the maximum file size is 200 MB. You must also turn on the **Enhanced search results** feature.
71+
72+
Larger files can be stored in SharePoint and **are returned** by a Microsoft Graph search, but aren't processed by generative answers. As an alternative, you can upload your own [files](knowledge-add-file-upload.md), which can be up to 512 MB in size.
73+
74+
For a list of limits and supported SharePoint functionality, see [Copilot Studio web app SharePoint limits](requirements-quotas.md#copilot-studio-web-app-sharepoint-limits).
75+
76+
### How to fix
77+
78+
If files relevant for your conversational AI experience exceed the size limitation, you might want to explore alternative architectures, such as using [Microsoft 365 Semantic Indexing](/microsoftsearch/semantic-index-for-copilot) or [connect your data to Azure OpenAI for Generative answers](nlu-generative-answers-azure-openai.md).
79+
80+
## Content blocked by content moderation
81+
82+
When they generate responses, Copilot Studio agents moderate content that falls under the [harm categories](/azure/ai-services/content-safety/concepts/harm-categories). When content gets moderated, generative answers doesn't provide a response or an indication that content was moderated. However, moderation events are logged when the agent is configured to [send telemetry data to Azure Applications Insights](advanced-bot-framework-composer-capture-telemetry.md#connect-your-copilot-studio-agent-to-application-insights).
83+
84+
After connecting your agent to Azure App Insights, you can use the following Kusto Query Language (KQL) query to find out if content was filtered:
85+
86+
```kusto
87+
customEvents
88+
| extend cd = todynamic(customDimensions)
89+
| extend conversationId = tostring(cd.conversationId)
90+
| extend topic = tostring(cd.TopicName)
91+
| extend message = tostring(cd.Message)
92+
| extend result = tostring(cd.Result)
93+
| extend SerializedData = tostring(cd.SerializedData)
94+
| extend Summary = tostring(cd.Summary)
95+
| extend feedback = tostring(todynamic(replace_string(SerializedData,"$","")).value)
96+
| where name == "GenerativeAnswers" and result contains "Filtered"
97+
| where cloud_RoleInstance == "myCopilot"
98+
| project cloud_RoleInstance, name, timestamp, conversationId, topic, message, result, feedback, Summary
99+
| order by timestamp desc
100+
```
101+
102+
In the following example, the KQL query highlights an attempt to use generative answers filtered by content moderation:
103+
104+
:::image type="content" source="media/generative-answers/content-filtered.png" alt-text="Screenshot of Azure Application Insights.":::
105+
106+
### How to fix
107+
108+
- Try to adjust [content moderation](nlu-boost-conversations.md#content-moderation), but keep in mind that a lower level of content moderation might result in answers that are less accurate or relevant.
109+
110+
- If you think your content shouldn't be moderated, [raise a case with customer support](/power-platform/admin/get-help-support).

0 commit comments

Comments
 (0)