|
1 | 1 | --- |
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 |
| 2 | +title: Troubleshoot Activation Issues With Dynamics 365 Sales AI Agents |
| 3 | +description: Solves activation issues related to Sales Qualification Agent and Opportunity Research Agent in Microsoft Dynamics 365 Sales. |
| 4 | +author: |
5 | 5 | ms.author: pachatte |
6 | 6 | ms.reviewer: aam, lavanyakr |
7 | | -ms.date: 08/13/2025 |
| 7 | +ms.date: 08/14/2025 |
8 | 8 | ms.custom: |
9 | 9 | --- |
10 | 10 | # Dynamics 365 Sales AI agent is stuck during activation |
11 | 11 |
|
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. |
| 12 | +This article provides guidance to resolve issues where the AI agents ([Sales Qualification Agent](/dynamics365/sales/sales-qualification-agent) and [Opportunity Research Agent](/dynamics365/sales/opportunity-research-agent)) in Dynamics 365 Sales get stuck during the activation process or revert to a draft state. |
13 | 13 |
|
14 | 14 | ## Symptoms |
15 | 15 |
|
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." |
| 16 | +- When you try to test, start, or update the agent's configuration, it remains in the **Starting Agent**, **Starting Test**, or **Applying changes** state for more than 10 minutes. |
| 17 | +- You receive error messages, such as: |
| 18 | + - > Something went wrong. Please try again. |
| 19 | + - > Couldn't start the agent. Please try again. |
18 | 20 | - The agent's state reverts to its previous status, such as **Draft** or **On**. |
19 | 21 |
|
20 | 22 | ## Cause |
21 | 23 |
|
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: |
| 24 | +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 in your browser or API tool, replacing \<ORGURL> with your organization's URL: |
23 | 25 |
|
24 | 26 | `<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus` |
25 | 27 |
|
26 | 28 | If the query returns no results or if `softdeletestatus` is set to **1**, the issue is related to the Power Automate flow. |
27 | 29 |
|
28 | | -## Resolution |
| 30 | +[Learn more about callbackregistration EntityType](/power-apps/developer/data-platform/webapi/reference/callbackregistration?view=dataverse-latest). |
| 31 | + |
| 32 | +## Solution |
29 | 33 |
|
30 | 34 | Follow these steps to resolve the issue: |
31 | 35 |
|
32 | 36 | 1. Go to the [Power Automate portal](https://make.powerautomate.com). |
33 | 37 | 2. Select the environment where the agent is published. |
34 | 38 | 3. Navigate to **My Flows**. |
35 | 39 | 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: |
| 40 | +5. Turn off the flow, then turn it back on. |
| 41 | +6. Run the query again in your browser or API tool: |
38 | 42 |
|
39 | 43 | `<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus` |
40 | 44 |
|
41 | 45 | 7. Confirm that `softdeletestatus` is **0**. |
42 | 46 | 8. Open the Sales Hub app and start the agent. |
43 | 47 |
|
44 | | -If the issue persists after following these steps, contact your system administrator or Microsoft support for further assistance. |
| 48 | +If the issue persists after following these steps, verify your flow configuration or contact Microsoft support for further assistance. |
0 commit comments