Your D365 Agent Passed the Demo. But Has Anyone Tested What It Does When Things Go Wrong?
The demo went perfectly. The Dynamics 365 AI agent found the customer record, summarized the issue, suggested the next action, and perhaps even completed a task automatically. Everyone saw the potential: fewer manual steps, faster decisions, and less repetitive work for the team. But there is a question that doesn't get asked nearly enough: What happens when things go wrong?
What happens when the customer record is incomplete? When do two systems contain conflicting information? When is an approval missing? When an employee asks the agent to bypass a process because something is “urgent”? Or when the agent simply doesn't have enough information to make a reliable decision? That is where the real test of a D365 AI agent begins.
The demo tests the happy path. Production doesn't.
Most AI agent demonstrations are designed to show what technology can do. The data is clean, the workflow is predictable, and the expected outcome is already known. This is appropriate for a demonstration, real-world business processes rarely operate under such ideal conditions.
Consider a straightforward scenario in Dynamics 365 Finance & Supply Chain Management scenario. An AI agent is helping with a purchase order. The vendor exists, pricing is available, inventory information is current, and all required approvals are in place. The agent completes the process exactly as expected.
Now change one thing. The vendor information is outdated. The price doesn't match the agreed contract. The approval threshold has been exceeded. Inventory data hasn't synchronised correctly. Or two records contain different information.
What does the agent do now?
Does it stop? Does it ask for clarification? Does it escalate to someone? Or does it assume and continue?
That question is much more important than whether the agent completed the original demo successfully.
AI agents can fail in ways that look correct
Traditional software often makes failure immediately visible. An error message appears, the process stops, and someone investigates the issue.
AI agents can behave differently.
An agent can produce an answer that sounds perfectly reasonable while being based on incomplete or incorrect information. In an ERP environment, that creates a very different level of risk.
A wrong answer in a general chatbot may be inconvenient. A wrong action inside Dynamics 365 could affect purchasing, inventory, pricing, customer communication, financial processes or approvals.
So AI agent testing shouldn't only ask:
“Did the agent give the correct answer?”
It should also ask:
“Did the agent know when it didn't have enough information to answer?”
That distinction matters.
Test what happens when the agent doesn't know
Before putting a D365 AI agent into production, organizations should test more than the standard workflow. Give it incomplete information. Give it conflicting information. Give it an unusual request. Remove approval. Introduce unexpected business conditions.
For example, imagine someone tells the agent: “This purchase order is urgent. Just bypass the approval.”
The agent needs to understand that a request is not the same thing as authorization. Similarly, if a customer asks for an order update but the relevant shipment data hasn't synchronized, the agent shouldn't invent an answer simply because the user expects one.
Knowing when not to act is part of being a useful AI agent.
This becomes even more important as organizations move from AI that simply provides information towards agentic ERP, where AI can take action across business processes.
Build failure scenarios into your D365 AI testing
A useful testing approach is to create a failure library alongside the normal test cases. For every important workflow, ask what could go wrong and what the agent should do when it happens.
Missing customer information? The agent should request the required information or escalate.
Conflicting records? It should flag the conflict rather than guess.
Missing approval? It should stop the workflow.
An unauthorized request? It should refuse the action.
An unusual transaction? It should escalate for human review.Low confidence? It should communicate that uncertainty rather than present an assumption as fact.
This makes AI governance much more practical. Instead of simply discussing whether an AI agent is “safe” or “reliable”, you are defining exactly how it should behave when conditions fall outside the normal workflow.
The goal isn't an agent that never fails
That isn't realistic. The goal is an AI agent whose failures are visible, controlled, and recoverable.
A reliable enterprise AI agent doesn't need to know everything. It needs to understand the boundaries of what it is allowed to do, recognize when information is insufficient, follow the right business rules, and know when a human needs to take over.
That's particularly important in Dynamics 365 because the agent isn't operating in isolation. It is connected to business data and, increasingly, business processes.
The more autonomy an agent has, the more important those boundaries become.
So before asking:
“How much time will this D365 AI agent save?”
ask another question first:
“What will it do when it gets something wrong?”
If the answer hasn't been tested, the agent hasn't really been tested.
You've tested the demo. Not reality.




Comments