---
title: View Exception Details in Nodinite Log Events | Exception Viewer Guide
description: Learn how to view and analyze .NET exception chains in Nodinite v7 Log Views. Understand exception visualization, stack traces, inner exception navigation, and formula-based data extraction for effective troubleshooting.
---

# View Exception Details

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 includes a specialized **exception viewer** that displays **.NET exception chains** directly in [Log Views][]. When developers log exceptions from .NET applications, Azure Functions, or frameworks like [Serilog][], the exception viewer automatically parses and formats the exception data for faster troubleshooting.

**What you'll learn on this page:**

✅ **View exception chains** - See the complete failure path from root cause to final error  
✅ **Navigate stack traces** - Inspect formatted stack traces with preserved line breaks  
✅ **Drill into inner exceptions** - Understand nested exception relationships  
✅ **Extract exception data** - Use formulas to create searchable fields from exception properties  

![Search a Log View for a failed order, open the event's Details and its Context Values, and drill from an InvalidOperationException into its inner SqlException, animated walkthrough (7.12)][2]  
*Animated walkthrough: in a Log View, search for order ORD-10044, click **Show Details**, open **Context Values**, and open the exception and its **Inner Exception**. Each level shows its Message, Class Name, Source, and Stack Trace; the root cause, a SocketException, is one level deeper.*

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p><strong>When to use the exception viewer:</strong> Open the <strong>Context Values</strong> tab of any <a href="https://docs.nodinite.com/core-services/log-event/overview/">Log Event</a> that has an exception in its <code>ExtendedProperties/1.0#Exception</code> context property, which is what the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> <a href="https://docs.nodinite.com/logging-and-monitoring/serilog/overview/">Serilog</a> sinks write. The viewer reads only that property: an exception that is only in the message body shows as the body (<strong>View message body</strong>), not in the viewer.</p></div>
</aside>

## How the Exception Viewer Works

The exception viewer parses .NET exception JSON structures and presents them in an organized, readable format. This eliminates the need to manually parse JSON or decode base64-encoded payloads.

<div class="mermaid">
graph TD
    A["fa:fa-exclamation-triangle Application Exception"] --> B["fa:fa-file-code Log Event Created"]
    B --> C["fa:fa-database Stored in Log Database"]
    C --> D["fa:fa-search Open in Log View"]
    D --> E["fa:fa-eye Exception Viewer Displays"]
    E --> F1["fa:fa-chain Exception Chain"]
    E --> F2["fa:fa-list Stack Traces"]
    E --> F3["fa:fa-sitemap Inner Exceptions"]
    E --> F4["fa:fa-info-circle Exception Properties"]
    style E fill:#2678BD
    style F1 fill:#93d16d
    style F2 fill:#93d16d
    style F3 fill:#93d16d
    style F4 fill:#93d16d
</div>  

*Diagram showing how exception data flows from application to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> exception viewer.*  

### What the Exception Viewer Shows

When you open a [Log Event][] with exception data in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 [Log Views][], click **Show Details** and open the **Context Values** tab. The `ExtendedProperties/1.0#Exception` row shows the exception viewer:

* **Exception chain visualization** - The outer exception is a card titled *ClassName: Message*. Each inner exception is a card of its own, nested to any depth
* **Known fields first** - Opened, a card lists **Message**, **Inner Exception**, **Class Name**, **Source**, and **Stack Trace** (and Exception Method, Line Number, Data, and Errors when present), with display names
* **Other fields** - Everything else, such as HResult and error codes, is under **Other fields**
* **Stack trace formatting** - Line breaks and indentation preserved for readability
* **Copy and raw view** - Each value has a copy button, and **View Raw Exception** shows the JSON, indented. The **<** next to the key widens the exception over the full table
* **Contextual information** - Order IDs, retry attempts, and environment details from [Context properties][Context Options]

![The exception viewer in Context Values, with System.InvalidOperationException open, its Inner Exception System.Data.SqlClient.SqlException open, Class Name, Source, Stack Trace, Other fields, and View Raw Exception (7.12)][1]  
*The exception viewer in an event's **Context Values**: the outer exception and its inner SqlException opened, the SocketException below them still closed.*  

## Typical Exception Scenario

A common scenario: An Azure Function attempts to process an order, encounters a database connection timeout, which is caused by a DNS resolution failure.

**Exception chain displayed in the viewer:**

1. **InvalidOperationException** (outermost) - "Failed to process order ORD-12345 after 3 retry attempts"
2. **SqlException** (middle) - "Network-related error connecting to SQL Server"
3. **SocketException** (innermost/root cause) - "No such host is known (sql-prod-east.database.windows.net)"

The exception viewer shows all three levels, allowing you to quickly identify that the root cause is a DNS resolution failure, not a database or application logic error.

## Exception Properties

Each exception level in the chain shows these fields. The viewer uses display names; the JSON keys, which you use in formulas, are in the second column:

| Viewer label | JSON key | Description | Example |
| --- | --- | --- | --- |
| **Message** | `Message` | Human-readable error description | "A network-related or instance-specific error occurred..." |
| **Inner Exception** | `InnerException` | Nested exception (closer to the root cause) | SocketException details |
| **Class Name** | `ClassName` | .NET exception type | `System.Data.SqlClient.SqlException` |
| **Source** | `Source` | Component that threw the exception | "Core .Net SqlClient Data Provider" |
| **Stack Trace** | `StackTraceString` | Call stack showing code path | File names, method names, line numbers |
| Under **Other fields** | `HResult` | Win32/COM error code | `-2146232060` |

Additional properties may appear under **Other fields**, depending on exception type:

* **SqlException:** `Number`, `State`, `Class`, `Server`, `ErrorCode`
* **SocketException:** `NativeErrorCode`
* **WebException:** `Status`, `Response`

## Using Exception Data in Search Fields

You can create [Search Fields][] with formula extraction to make exception properties searchable. This enables filtering and reporting on specific exception types or error codes.

### Formula Examples

The `..` in these paths searches every level of the chain, so a formula returns one value per level that has the field.

**Extract the exception messages** (every level: three values for a three-level chain):

```text
JsonPath('..Message', Context('ExtendedProperties/1.0#Exception'))
```

**Extract the exception class names** (every level):

```text
JsonPath('..ClassName', Context('ExtendedProperties/1.0#Exception'))
```

**Extract the SQL error code** (from the SqlException in the chain, for example `-2146232060`; nothing for a chain without one):

```text
JsonPath('..ErrorCode', Context('ExtendedProperties/1.0#Exception'))
```

**Extract the root cause** (the message of the exception that has no inner exception, at any depth):

```text
JsonPath('$..[?(@.InnerException == null)].Message', Context('ExtendedProperties/1.0#Exception'))
```

Function names are not case-sensitive: `JsonPath`, `jsonPath`, and `jsonpath` all work.

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Create a custom search field like "Exception Type" with the ClassName formula to enable filtering Log Views by specific exception types (e.g., show only SqlException or SocketException events).</p></div>
</aside>

## Serilog Integration

When .NET applications use [Serilog][] with <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> sinks, exceptions are automatically captured when you call `.Error(exception, message)`. The exception object is serialized to JSON and stored in `Context["ExtendedProperties/1.0#Exception"]`.

**Example Serilog code:**

```csharp
try
{
    await ProcessOrderAsync(orderId);
}
catch (Exception ex)
{
    _logger.Error(ex, "Failed to process order {OrderId}", orderId);
    // Exception is automatically sent to Nodinite with full chain and stack trace
}
```

The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> exception viewer automatically detects this format and displays the exception chain, stack traces, and all properties.

>* <i class="fal fa-link" aria-hidden="true"></i> **Learn more:** See [Serilog .NET Exceptions][Serilog] for **configuration** details and best practices.  

## Best Practices for Error Analysis

### For Business Users

* **Focus on the outermost exception message** - This typically contains the business-friendly error description
* **Check Context properties** - Look for Order IDs, Transaction IDs, or other business data in the Context section
* **Note the timestamp** - Correlate with business events or system maintenance windows
* **Add comments** - Document investigation findings using the [Comments][] feature

### For Developers

* **Start with the innermost exception** - This is usually the root cause
* **Inspect stack traces** - Look for line numbers and file names to pinpoint code locations
* **Check HResult and error codes** - These identify specific Win32 or COM errors
* **Compare exception chains** - Look for patterns across multiple failed [Log Events][Log Event]
* **Extract exception data** - Create custom [Search Fields][] to track specific error types

### For Operations Teams

* **Monitor exception trends** - Use [Search Fields][] to count exceptions by type over time
* **Set up alerts** - Create [Monitor Views][] that trigger when specific exception types appear
* **Document known issues** - Add [Comments][] with links to known issues or workarounds
* **Track resolution time** - Use timestamps and comments to measure time-to-resolution

## Troubleshooting

### Exception Data Not Displaying

If you don't see exception details in the exception viewer:

* **Check Context properties** - Look for `ExtendedProperties/1.0#Exception` in the **Context Values** tab. The viewer reads only this property
* **Exception only in the Body** - The viewer doesn't parse the message body. An exception logged only in the `Body` shows with **View message body**, as plain text or JSON
* **Verify JSON format** - Exception data must be valid JSON with .NET exception structure (ClassName, Message, StackTraceString)
* **Check Serilog configuration** - Ensure the Serilog sink is configured to capture exceptions (see [Serilog][])

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p><strong>Need to generate test exceptions?</strong> Developers can create sample exception <a href="https://docs.nodinite.com/core-services/log-event/overview/">Log Event</a> for testing. See <a href="https://docs.nodinite.com/core-services/log-api/troubleshooting/faq-generate-exception-log-events/">Generate Exception Log Events</a> for PowerShell scripts.</p></div>
</aside>

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

<i class="fal fa-comment" aria-hidden="true"></i> [Add Comments to Log Events][Comments] - Document investigation findings directly on [Log Event][] records  
<i class="fal fa-search" aria-hidden="true"></i> [Create Custom Search Fields][Search Fields] - Extract exception data for filtering and reporting  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-flag" aria-hidden="true"></i> [Log Status and Errors][]  
<i class="fal fa-book" aria-hidden="true"></i> [Log Views Overview][Log Views] - Learn about viewing and filtering [Log Event][] records in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7  
<i class="fal fa-code" aria-hidden="true"></i> [Serilog Integration][Serilog] - Configure Serilog to capture .NET exceptions  
<i class="fal fa-flask" aria-hidden="true"></i> [Generate Exception Log Events][] - Create test exception data for demos  
<i class="fal fa-cog" aria-hidden="true"></i> [Context Options][] - Understand Context properties and custom metadata  
<i class="fal fa-chart-line" aria-hidden="true"></i> [Monitor Views][] - Set up alerts for specific exception types  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Log/ExceptionDetails.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Log/ExceptionDetails.gif

[Comments]:https://docs.nodinite.com/getting-started/log/comments-for-logged-messages/
[Context Options]:https://docs.nodinite.com/core-services/log-event/features/context-options/
[Generate Exception Log Events]:https://docs.nodinite.com/core-services/log-api/troubleshooting/faq-generate-exception-log-events/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log Status and Errors]:https://docs.nodinite.com/getting-started/log/logging-strategy/log-status-and-errors/
[Log Views]:https://docs.nodinite.com/getting-started/log/overview/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[Serilog]:https://docs.nodinite.com/logging-and-monitoring/serilog/overview/