Skip to content

Commit 2069efc

Browse files
authored
Merge pull request #9485 from MicrosoftDocs/ai-agent-issue
AB#7062: AI Agent troubleshooting
2 parents 429a942 + 4ccbe54 commit 2069efc

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

support/dynamics-365/sales/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
href: troubleshoot-sales-premium-issues.md
7171
- name: Troubleshoot relationship intelligence
7272
href: troubleshoot-relationship-intelligence.md
73+
- name: Sales Qualification Agent
74+
items:
75+
- name: Dynamics 365 Sales AI agent is stuck during activation
76+
href: troubleshoot-ai-agents-issues.md
7377
- name: Teams Dialer
7478
items:
7579
- name: Can't enable Teams dialer
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

Comments
 (0)