# ServerSheetControl.GetWarningsAsync Method

> ServerSheetControl.GetWarningsAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Server.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > ServerSheetControl > ServerSheetControl.GetWarningsAsync Method
- **455 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrol/getwarningsasync-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrol/getwarningsasync-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrol/getwarningsasync-method/llms-full.txt

---

Performs an operation on this document without activating another worksheet.

### Syntax

```csharp
public Task<string[]> GetWarningsAsync(CancellationToken cancellationToken = default)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `cancellationToken` | `CancellationToken` | Yes | Cancels the pending operation. |

### Return Value

`Task<string[]>`. The operation result, returned asynchronously.

### Examples

Create and format a complete invoice before using this processing API. Return document bytes, operation metadata or notifications to the application; dispose owned controls after processing.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<string[]> CreateInvoiceGetWarningsAsyncAsync(ServerSheetControl control, byte[] originalXlsx)
{
    await control.LoadAsync(originalXlsx, StreamType.SpreadsheetML);
    return await control.GetWarningsAsync();
}
```

### Remarks

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

### See Also

- [ServerSheetControl Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrol/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [ServerSheetControl.GetUserNameAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrol/getusernameasync-method/llms-full.txt)
- **Next:** [ServerSheetControl.GetXlsxWarningsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontrol/getxlsxwarningsasync-method/llms-full.txt)
