# ExportDataAsync Method

## Overloads

| [ExportDataAsync(NxExportFileType, String, String, NxExportState, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm#Qlik_Engine_GenericObject_ExportDataAsync_Qlik_Engine_NxExportFileType_System_String_System_String_Qlik_Engine_NxExportState_System_Boolean_) |  | Exports the data of any generic object to an Excel file or a open XML file. If the object contains excluded values, those excluded values are not exported.<br><br>This API has limited functionality and will not support CSV export from all types of objects. Consider using Excel export instead. Treemap and bar chart are not supported.<br><br>Default limitations in number of rows and columns<br><br>The default maximum number of rows and columns in the Excel export file is:<br><br>\* 1048566 rows per sheet. For pivot tables: 1048566 column dimensions. 10 rows can be added after the export.<br><br>\* 16384 columns per sheet. If the number of columns exceeds the limit, the exported file is truncated and a warning message is sent.<br><br>Default limitation in number of columns<br><br>The default maximum number of columns in the export file is:<br><br>\* 1000 to export to a CSV file<br><br>Default limitations in number of cells<br><br>The default maximum number of cells in the export file is:<br><br>\* 5000000 to export to a CSV file<br><br>The exported file is truncated if the number of cells exceeds the limit. A warning message with code 1000 is sent.<br><br>Default limitation in size<br><br>If the exported file is larger than the maximum value, then an out-of-memory error with code 13000 is returned. |
| --- | --- | --- |
| [ExportDataAsync(AsyncHandle, NxExportFileType, String, String, NxExportState, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm#Qlik_Engine_GenericObject_ExportDataAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_NxExportFileType_System_String_System_String_Qlik_Engine_NxExportState_System_Boolean_) |  | Exports the data of any generic object to an Excel file or a open XML file. If the object contains excluded values, those excluded values are not exported.<br><br>This API has limited functionality and will not support CSV export from all types of objects. Consider using Excel export instead. Treemap and bar chart are not supported.<br><br>Default limitations in number of rows and columns<br><br>The default maximum number of rows and columns in the Excel export file is:<br><br>\* 1048566 rows per sheet. For pivot tables: 1048566 column dimensions. 10 rows can be added after the export.<br><br>\* 16384 columns per sheet. If the number of columns exceeds the limit, the exported file is truncated and a warning message is sent.<br><br>Default limitation in number of columns<br><br>The default maximum number of columns in the export file is:<br><br>\* 1000 to export to a CSV file<br><br>Default limitations in number of cells<br><br>The default maximum number of cells in the export file is:<br><br>\* 5000000 to export to a CSV file<br><br>The exported file is truncated if the number of cells exceeds the limit. A warning message with code 1000 is sent.<br><br>Default limitation in size<br><br>If the exported file is larger than the maximum value, then an out-of-memory error with code 13000 is returned. |
| [ExportDataAsync<T>(AsyncHandle, Func<Response, T>, NxExportFileType, String, String, NxExportState, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm#Qlik_Engine_GenericObject_ExportDataAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__Qlik_Engine_NxExportFileType_System_String_System_String_Qlik_Engine_NxExportState_System_Boolean_) |  | Exports the data of any generic object to an Excel file or a open XML file. If the object contains excluded values, those excluded values are not exported.<br><br>This API has limited functionality and will not support CSV export from all types of objects. Consider using Excel export instead. Treemap and bar chart are not supported.<br><br>Default limitations in number of rows and columns<br><br>The default maximum number of rows and columns in the Excel export file is:<br><br>\* 1048566 rows per sheet. For pivot tables: 1048566 column dimensions. 10 rows can be added after the export.<br><br>\* 16384 columns per sheet. If the number of columns exceeds the limit, the exported file is truncated and a warning message is sent.<br><br>Default limitation in number of columns<br><br>The default maximum number of columns in the export file is:<br><br>\* 1000 to export to a CSV file<br><br>Default limitations in number of cells<br><br>The default maximum number of cells in the export file is:<br><br>\* 5000000 to export to a CSV file<br><br>The exported file is truncated if the number of cells exceeds the limit. A warning message with code 1000 is sent.<br><br>Default limitation in size<br><br>If the exported file is larger than the maximum value, then an out-of-memory error with code 13000 is returned. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm)

## ExportDataAsync(NxExportFileType, String, String, NxExportState, Boolean)

Exports the data of any generic object to an Excel file or a open XML file. If the object contains excluded values, those excluded values are not exported.

This API has limited functionality and will not support CSV export from all types of objects. Consider using Excel export instead. Treemap and bar chart are not supported.

#### Default limitations in number of rows and columns

The default maximum number of rows and columns in the Excel export file is:

* 1048566 rows per sheet. For pivot tables: 1048566 column dimensions. 10 rows can be added after the export.
* 16384 columns per sheet. If the number of columns exceeds the limit, the exported file is truncated and a warning message is sent.
* 1000 to export to a CSV file
* 5000000 to export to a CSV file

#### Default limitation in number of columns

The default maximum number of columns in the export file is:

#### Default limitations in number of cells

The default maximum number of cells in the export file is:

The exported file is truncated if the number of cells exceeds the limit. A warning message with code 1000 is sent.

#### Default limitation in size

If the exported file is larger than the maximum value, then an out-of-memory error with code 13000 is returned.

### Declaration

```

          public Task<ExportDataResult> ExportDataAsync([QixName("qFileType")] NxExportFileType fileType, [QixName("qPath")] string path = null, [QixName("qFileName")] string fileName = null, [QixName("qExportState")] NxExportState exportState = NxExportState.EXPORT_ALL, [QixName("qServeOnce")] bool serveOnce = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [NxExportFileType](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxExportFileType.htm) | fileType | Type of the file to export. |
| System.String | path | Path to the definition of the object to be exported.<br>For example, `/qHyperCubeDef` .<br>This parameter is mandatory if the file type is `CSV_C` or `CSV_T` . |
| System.String | fileName | Name of the exported file after download from browser.<br>This parameter is optional and only used in Qlik Sense Desktop. |
| [NxExportState](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxExportState.htm) | exportState | Defines the values to be exported.<br>The default value is A. |
| System.Boolean | serveOnce | If the exported file should be served only once<br>This parameter is optional and only used in Qlik Sense Enterprise (Windows)<br>Default value: false |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[ExportDataResult](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ExportDataResult.htm)&gt; |  |

### Implements

[IGenericObject.ExportDataAsync(NxExportFileType, String, String, NxExportState, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.ExportDataAsync.htm#Qlik_Engine_IGenericObject_ExportDataAsync_Qlik_Engine_NxExportFileType_System_String_System_String_Qlik_Engine_NxExportState_System_Boolean_)

### Remarks

ExportData method is not supported in SaaS Editions of Qlik Sense.

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm)

## ExportDataAsync(AsyncHandle, NxExportFileType, String, String, NxExportState, Boolean)

Exports the data of any generic object to an Excel file or a open XML file. If the object contains excluded values, those excluded values are not exported.

This API has limited functionality and will not support CSV export from all types of objects. Consider using Excel export instead. Treemap and bar chart are not supported.

#### Default limitations in number of rows and columns

The default maximum number of rows and columns in the Excel export file is:

* 1048566 rows per sheet. For pivot tables: 1048566 column dimensions. 10 rows can be added after the export.
* 16384 columns per sheet. If the number of columns exceeds the limit, the exported file is truncated and a warning message is sent.
* 1000 to export to a CSV file
* 5000000 to export to a CSV file

#### Default limitation in number of columns

The default maximum number of columns in the export file is:

#### Default limitations in number of cells

The default maximum number of cells in the export file is:

The exported file is truncated if the number of cells exceeds the limit. A warning message with code 1000 is sent.

#### Default limitation in size

If the exported file is larger than the maximum value, then an out-of-memory error with code 13000 is returned.

### Declaration

```

          public Task<ExportDataResult> ExportDataAsync(AsyncHandle asyncHandle, [QixName("qFileType")] NxExportFileType fileType, [QixName("qPath")] string path = null, [QixName("qFileName")] string fileName = null, [QixName("qExportState")] NxExportState exportState = NxExportState.EXPORT_ALL, [QixName("qServeOnce")] bool serveOnce = false)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| [NxExportFileType](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxExportFileType.htm) | fileType | Type of the file to export. |
| System.String | path | Path to the definition of the object to be exported.<br>For example, `/qHyperCubeDef` .<br>This parameter is mandatory if the file type is `CSV_C` or `CSV_T` . |
| System.String | fileName | Name of the exported file after download from browser.<br>This parameter is optional and only used in Qlik Sense Desktop. |
| [NxExportState](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxExportState.htm) | exportState | Defines the values to be exported.<br>The default value is A. |
| System.Boolean | serveOnce | If the exported file should be served only once<br>This parameter is optional and only used in Qlik Sense Enterprise (Windows)<br>Default value: false |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[ExportDataResult](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ExportDataResult.htm)&gt; |  |

### Implements

[IGenericObject.ExportDataAsync(AsyncHandle, NxExportFileType, String, String, NxExportState, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.ExportDataAsync.htm#Qlik_Engine_IGenericObject_ExportDataAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_NxExportFileType_System_String_System_String_Qlik_Engine_NxExportState_System_Boolean_)

### Remarks

ExportData method is not supported in SaaS Editions of Qlik Sense.

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.GenericObject.ExportDataAsync.htm)

## ExportDataAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;, NxExportFileType, String, String, NxExportState, Boolean)

Exports the data of any generic object to an Excel file or a open XML file. If the object contains excluded values, those excluded values are not exported.

This API has limited functionality and will not support CSV export from all types of objects. Consider using Excel export instead. Treemap and bar chart are not supported.

#### Default limitations in number of rows and columns

The default maximum number of rows and columns in the Excel export file is:

* 1048566 rows per sheet. For pivot tables: 1048566 column dimensions. 10 rows can be added after the export.
* 16384 columns per sheet. If the number of columns exceeds the limit, the exported file is truncated and a warning message is sent.
* 1000 to export to a CSV file
* 5000000 to export to a CSV file

#### Default limitation in number of columns

The default maximum number of columns in the export file is:

#### Default limitations in number of cells

The default maximum number of cells in the export file is:

The exported file is truncated if the number of cells exceeds the limit. A warning message with code 1000 is sent.

#### Default limitation in size

If the exported file is larger than the maximum value, then an out-of-memory error with code 13000 is returned.

### Declaration

```
public Task<T> ExportDataAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qFileType")] NxExportFileType fileType, [QixName("qPath")] string path = null, [QixName("qFileName")] string fileName = null, [QixName("qExportState")] NxExportState exportState = NxExportState.EXPORT_ALL, [QixName("qServeOnce")] bool serveOnce = false)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| [NxExportFileType](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxExportFileType.htm) | fileType | Type of the file to export. |
| System.String | path | Path to the definition of the object to be exported.<br>For example, `/qHyperCubeDef` .<br>This parameter is mandatory if the file type is `CSV_C` or `CSV_T` . |
| System.String | fileName | Name of the exported file after download from browser.<br>This parameter is optional and only used in Qlik Sense Desktop. |
| [NxExportState](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxExportState.htm) | exportState | Defines the values to be exported.<br>The default value is A. |
| System.Boolean | serveOnce | If the exported file should be served only once<br>This parameter is optional and only used in Qlik Sense Enterprise (Windows)<br>Default value: false |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |

### Implements

[IGenericObject.ExportDataAsync<T>(AsyncHandle, Func<Response, T>, NxExportFileType, String, String, NxExportState, Boolean)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.ExportDataAsync.htm#Qlik_Engine_IGenericObject_ExportDataAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__Qlik_Engine_NxExportFileType_System_String_System_String_Qlik_Engine_NxExportState_System_Boolean_)

### Remarks

ExportData method is not supported in SaaS Editions of Qlik Sense.