# File To Datatable

Converts the Excel file to a DataTable object. Supports format conversions for decimal, date and integer columns.


---

### **⬅️INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePath` | `String` | ✅ Yes    | Excel file path |
| `Data`    | `Byte[]` | ✅ Yes    | Excel binary data |
| `SheetName` | `String` | ❌ No     | Name of the sheet to read |
| `DecimalSeparator` | `String` | ❌ No     | Decimal separator character |
| `DecimalColumns` | `String` | ❌ No     | Decimal columns |
| `IntColumns` | `String` | ❌ No     | Integer columns |
| `DateFormat` | `String` | ❌ No     | Date format |
| `DateColumns` | `String` | ❌ No     | Date columns |
| `DateTimeFormat` | `String` | ❌ No     | Date-time format |
| `DateTimeColumns` | `String` | ❌ No     | Date-time columns |


---

### **➡️OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsExcelFileToDataTableSuccessful` | `Boolean` | Whether the operation succeeded |
| `ExcelFileToDataTableMessage` | `String` | Result message |
| `ExcelFileToDataTableResult` | `DataTable` | Converted DataTable |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |