Execution Tracer
Execution Tracer records what happens while you use a form: every column change, save and command, the scripts they run, the requests sent to Dataverse and the server logic those requests start. Each action becomes a chart you can explore step by step, so you can see why a value changed, which plug-in failed or what a save really triggers.
What it shows
Section titled “What it shows”- Your actions: column changes (by you or by a script), saves (including autosave), command bar clicks, form refreshes and page reloads.
- Form scripts: the OnChange, OnSave and OnLoad handlers that ran, and the columns they changed.
- Requests: every Dataverse request the page sent, with its result, its duration, the columns it sent and who sent it: a form script (with the function and its call stack), a control, an HTML web resource or Dynamics 365 itself.
- Plug-ins with their depth: synchronous and asynchronous plug-ins and custom workflow activities, including those that run on other records, for example the record in one of the form’s lookups. Calls to outside services that a plug-in wrote to its trace are shown too.
- Classic workflows: the real-time workflows a save started, with the columns they set, and background workflows.
- System jobs and cloud flows: the system jobs a request created, the notification Dataverse sends to Power Automate, the cloud flows subscribed to the change and their runs.
Record a trace
Section titled “Record a trace”- Open the record form you want to investigate.
- In the side panel, select Execution Tracer in the Form section. A recorder bar appears at the bottom of the page.
- Use the form as usual: change columns, save, select commands.
- Select Open trace in the bar to see the chart. Recording continues while it’s open.
- When you’re done, select Stop.
Recording continues if you reload the page in the same tab, and the trace stays in that tab until you start a new recording. To keep it, select Export in the trace to download it as a JSON file.
The recorder bar
Section titled “The recorder bar”- The state, Recording or Paused, and the time since you started.
- The number of actions and steps. Select it to see the latest actions with what each one started, and open any of them.
- Reading server logs while plug-in trace logs, system jobs and flow runs are read. They’re read a few seconds after each action and again over the next minutes, because server logic can finish after the page has moved on.
- A warning when plug-in trace logging is off or limited to exceptions, or when you can’t read trace logs.
- Pause or Resume, Stop, Open trace and a button to minimize the bar.
Read the chart
Section titled “Read the chart”The cards along the top are your actions, numbered in order. Select one to show its chart. The chart reads from left to right:
- You: the action you took.
- Form scripts: the handlers that ran, and the columns they changed.
- Requests: what the page sent to Dataverse.
- Depth 1, Depth 2 and further: the plug-ins and real-time workflows each request started, and what those started in turn. D1 and D2 on a card show its depth in the Dataverse pipeline.
- External calls: calls to outside services that plug-ins wrote to their trace.
Work that runs in the background, such as asynchronous plug-ins, system jobs, background workflows and cloud flows, appears in a separate band at the bottom of the chart.
Lines show how sure each link is
Section titled “Lines show how sure each link is”- Solid, Proven: seen in this tab, or Dataverse returned the same request or correlation ID.
- Dashed, Likely: matched by table, message and time, or by the trigger of a flow or workflow.
- Dotted, Possible: matched by timing only.
Dots show the status
Section titled “Dots show the status”- Green: succeeded. Red: failed. Blue: running. Amber: waiting.
- Gray: canceled or turned off. Hollow: not known yet, for example a flow whose run isn’t available.
Step details
Section titled “Step details”Select any card to see its details on the right:
- Why it’s here: how the step is linked to your action, and how sure that link is.
- Path: the chain from your action to this step, also highlighted on the chart. Select a step in the path to go to it.
- Details: for example the message, table, stage, mode, depth, duration, IDs and the columns that were sent.
- Call stack: for requests sent by scripts, the functions that led to the request.
- Trace lines and the error, for plug-ins.
- Links to open the record, the plug-in step, the trace log, the system job, the workflow or the flow run in Power Automate. Open script opens a script at its function in the side panel’s Web Resource Editor.
Move around
Section titled “Move around”- Drag or scroll to move. Hold Ctrl and scroll to zoom, or use the + and − buttons. Fit shows the whole chart.
- With the keyboard: + and − zoom, 0 fits the chart, the arrow keys move between steps and Esc closes the trace.
- Search highlights steps, tables and plug-ins that match; press Enter to go to the first one.
- The mini-map at the bottom right shows where you are. Select a spot on it to move there.
- Show app requests adds the reads Dynamics 365 sends on its own, such as form data, views, subgrids and metadata. They’re hidden unless they started server logic or failed.
- A notice lists plug-in runs that happened on the server at the same time but don’t belong to your actions, for example another user’s changes.
Get the most complete trace
Section titled “Get the most complete trace”- Log all plug-ins. Plug-ins appear when they’re in the plug-in trace log, and Dataverse logs successful plug-ins only when the Plug-in trace log setting is All. If it’s off or set to exceptions only, the trace offers to turn on logging for all plug-ins, and to put the setting back when you’re done.
- Access. Reading the trace log needs read access to the Plug-in Trace Log table. Trace lines are shown to System Administrators.
- Refresh. Select Refresh to read the server logs again, for example for a flow that runs a few minutes later.
Good to know
Section titled “Good to know”- Real-time workflows leave no log when they succeed, so they’re matched by their trigger and shown as Likely. The columns they set appear under them when the form reloads.
- Dataverse deletes some short system jobs, such as the notification it sends to Power Automate, seconds after they finish. The trace keeps them once it has seen them.
- Cloud flows that aren’t in a solution don’t keep their run history in Dataverse. They’re shown as triggered, with a link to Power Automate.
- The trace only reads. It changes nothing, except the plug-in trace log setting when you ask it to.
- The recording stays in the browser tab. It isn’t sent anywhere.