|
| 1 | +--- |
| 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 | +ms.reviewer: aam, lavanyakr, pachatte |
| 5 | +ms.date: 08/15/2025 |
| 6 | +ms.custom: sap:Sales Qualification Agent\Troubleshoot sales qualification agent |
| 7 | +ms.collection: CEnSKM-ai-copilot |
| 8 | +--- |
| 9 | +# Dynamics 365 Sales AI agent is stuck during activation |
| 10 | + |
| 11 | +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. |
| 12 | + |
| 13 | +## Symptoms |
| 14 | + |
| 15 | +As an administrator, you may encounter the following symptoms when you try to configure or activate AI agents: |
| 16 | + |
| 17 | +- 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. |
| 18 | +- You receive error messages, such as: |
| 19 | + - > Something went wrong. Please try again. |
| 20 | + - > Couldn't start the agent. Please try again. |
| 21 | +- The agent's state reverts to its previous status, such as **Draft** or **On**. |
| 22 | + |
| 23 | +## Cause |
| 24 | + |
| 25 | +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: |
| 26 | + |
| 27 | +`<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus` |
| 28 | + |
| 29 | +If the query returns no results or if `softdeletestatus` is set to **1**, the issue is related to the Power Automate flow. |
| 30 | + |
| 31 | +[Learn more about callbackregistration EntityType](/power-apps/developer/data-platform/webapi/reference/callbackregistration). |
| 32 | + |
| 33 | +## Solution |
| 34 | + |
| 35 | +Follow these steps to resolve the issue: |
| 36 | + |
| 37 | +1. Go to the [Power Automate portal](https://make.powerautomate.com). |
| 38 | +2. Select the environment where the agent is published. |
| 39 | +3. Navigate to **My Flows**. |
| 40 | +4. Open the **Activate Sales Agent Profile Flow**. |
| 41 | +5. Turn off the flow, then turn it back on. |
| 42 | +6. Run the query again in your browser or API tool: |
| 43 | + |
| 44 | + `<ORGURL>/api/data/v9.0/callbackregistrations?$filter=entityname eq 'msdyn_salesagentprofile'&$select=name,filteringattributes,softdeletestatus` |
| 45 | + |
| 46 | +7. Confirm that `softdeletestatus` is **0**. |
| 47 | +8. Open the Sales Hub app and start the agent. |
| 48 | + |
| 49 | +If the issue persists after following these steps, verify your flow configuration or contact Microsoft support for further assistance. |
0 commit comments