|
1 | 1 | --- |
2 | | -title: Troubleshoot issues with sales AI agents |
3 | | -description: Provides resolutions for the known issues that are related to AI agents in Dynamics 365 Sales. |
4 | | -author: |
5 | | -ms.author: |
6 | | -ms.reviewer: |
7 | | -ms.date: 08/07/2025 |
| 2 | +title: Troubleshoot Issues With Dynamics 365 Sales AI Agents |
| 3 | +description: Solves issues that are related to Sales Qualification Agent and Opportunity Research Agent in Microsoft Dynamics 365 Sales. |
| 4 | +author: pachatte |
| 5 | +ms.author: pachatte |
| 6 | +ms.reviewer: aam, lavanyakr |
| 7 | +ms.date: 08/13/2025 |
8 | 8 | ms.custom: |
9 | 9 | --- |
10 | | -# Troubleshoot issues with sales AI agents |
| 10 | +# Dynamics 365 Sales AI agent is stuck during activation |
11 | 11 |
|
12 | | -This article helps you troubleshoot and resolve issues related to AI agents in Microsoft Dynamics 365 Sales. |
| 12 | +This article provides step-by-step guidance to troubleshoot and resolve issues with AI agents ([Sales Qualification Agent](/dynamics365/sales/sales-qualification-agent) and [Opportunity Research Agent](/dynamics365/sales/opportunity-research-agent)) in Microsoft Dynamics 365 Sales. |
13 | 13 |
|
14 | | -## Sales AI agent is stuck during the activation process |
| 14 | +## Symptoms |
15 | 15 |
|
16 | | -### Symptoms |
| 16 | +- The agent remains stuck in the **Starting Agent**, **Starting Test**, or **Applying changes** state for more than 10 minutes when you try to test, start, or update its configuration. |
| 17 | +- You receive error messages such as "Something went wrong. Please try again" or "Couldn't start the agent. Please try again." |
| 18 | +- The agent's state reverts to its previous status, such as **Draft** or **On**. |
17 | 19 |
|
18 | | -- When you try to test or start the agent, or apply changes after editing the agent configuration, the agent is stuck in the **Starting Agent**, **Starting Test**, or **Applying changes** state for more than 10 minutes. |
19 | | -- You see an error message that says "Something went wrong. Please try again." or "Couldn't start the agent. Please try again." |
20 | | -- You see that the agent state is reset to its previous state, such as **Draft** or **On**. |
| 20 | +## Cause |
21 | 21 |
|
| 22 | +This issue occurs when the agent can't start the Power Automate flow required for activation. To check if the problem is related to the Power Automate flow, run the following query: |
22 | 23 |
|
23 | | -### Cause |
| 24 | +`<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus` |
24 | 25 |
|
25 | | -The agent is unable to start the Power Automate flow that activates the agent. To identify if the issue is related to the Power Automate flow, go to `<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus` |
| 26 | +If the query returns no results or if `softdeletestatus` is set to **1**, the issue is related to the Power Automate flow. |
26 | 27 |
|
27 | | -If there are no results OR if `softdeletestatus` is 1, then the issue is related to the Power Automate flow. |
| 28 | +## Resolution |
28 | 29 |
|
29 | | -### Resolution |
| 30 | +Follow these steps to resolve the issue: |
30 | 31 |
|
31 | 32 | 1. Go to the [Power Automate portal](https://make.powerautomate.com). |
32 | | -2. Select the environment in which the agent is being published. |
33 | | -3. Go to **My Flows**. |
34 | | -4. Open the **Activate Sales Agent Profile Flow** flow. |
35 | | -5. Turn it off and then turn it on again. |
36 | | -6. Go to `<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus`. |
37 | | -1. Check if the `softdeletestatus` is 0. |
38 | | -1. Open the Sales Hub app and start the agent. |
| 33 | +2. Select the environment where the agent is published. |
| 34 | +3. Navigate to **My Flows**. |
| 35 | +4. Open the **Activate Sales Agent Profile Flow**. |
| 36 | +5. Turn the flow off, then turn it back on. |
| 37 | +6. Run the query again: |
| 38 | + |
| 39 | + `<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus` |
| 40 | + |
| 41 | +7. Confirm that `softdeletestatus` is **0**. |
| 42 | +8. Open the Sales Hub app and start the agent. |
| 43 | + |
| 44 | +If the issue persists after following these steps, contact your system administrator or Microsoft support for further assistance. |
0 commit comments