# InvalidNumberFormatException Class

> Is thrown when calling the method MailMerge.MergeJsonData with a JSON string containing a number with an invalid number format.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.Json`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Inherits:** `System.Exception` › `TXTextControl.DocumentServer.Json.ParserException`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Json > InvalidNumberFormatException Class
- **467 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-json/invalidnumberformatexception/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-json/invalidnumberformatexception/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-json/invalidnumberformatexception/llms-full.txt

---

### Description

Is thrown when calling the method [MailMerge.MergeJsonData](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/mailmerge/mergejsondata-method/llms-full.txt) with a JSON string containing a number with an invalid number format.

### Syntax

```csharp
public class InvalidNumberFormatException : ParserException
```

```vbnet
Public Class InvalidNumberFormatException
    Inherits ParserException
```

### Examples

The following example creates an Invalid Number Format Exception instance and configures its help link setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Json.InvalidNumberFormatException invalidNumberFormatException = new(10, "Quarterly report");
invalidNumberFormatException.HelpLink = "Quarterly report";
```

```vbnet
Dim invalidNumberFormatException As New TXTextControl.DocumentServer.Json.InvalidNumberFormatException(10, "Quarterly report")
invalidNumberFormatException.HelpLink = "Quarterly report"
```

---

## Nearby

- **Previous:** [InvalidCodePointException Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-json/invalidcodepointexception/llms-full.txt)
- **Next:** [ParserException Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-json/parserexception/llms-full.txt)
