Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

ConvertToCSV

Converts Excel file to CSV.

Task version: 2.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Path : String

Path to the Excel file.

Default: C:\tmp\ExcelFile.xlsx Example: C:\tmp\ExcelFile.xlsx

Name
Description

ReadOnlyWorkSheetWithName : String

If empty, all work sheets are read.

Default: - Example: Sheet2

CsvSeparator : String

Csv separator.

Default: ; Example: ;

ThrowErrorOnFailure : Boolean

Choose if exception should be thrown when conversion fails.

Default: True Example: true

ErrorMessageOnFailure : String

Overrides the error message on failure.

Default: - Example: Excel conversion failed due to invalid input

DateFormat : DateFormats

Date format selection.

Possible values:

  • DEFAULT: Default format, will use CurrentCulture.DateTimeFormat.ShortDatePattern

for ShortDatePattern option is set to true, otherwise will use

CurrentCulture.DateTimeFormat.DateTimeFormat.

  • DDMMYYYY: Will use dd/MM/yyyy if ShortDatePattern option is set to true,

otherwise will use dd/MM/yyyy H:mm:ss.

  • MMDDYYYY: Will use MM/dd/yyyy if ShortDatePattern option is set to true,

otherwise will use MM/dd/yyyy h:mm:ss tt.

  • YYYYMMDD: Will use yyyy/MM/dd if ShortDatePattern option is set to true,

otherwise will use yyyy/MM/dd H:mm:ss.

Default: DEFAULT Example: Default

ShortDatePattern : Boolean

If set to true, dates will exclude timestamps from dates.

Default: false Example: false

Task Result

Name
Description

Success : Boolean

Conversion's status. False if conversion fails. Example: false

CSV : String

Excel-conversion to CSV. Example: "Foo,Bar,Kanji 働,Summa\r\n1,2,3,6\r\nKuva,1,2,3\r\n,,,\r\nFoo,,,\r\n,Bar,,\r\n"

Error : Error

Error that occurred during task execution. Example: object { string Message, Exception AdditionalInfo }

Error.Message : String

Summary of the error. Example: Unable to convert the Excel file to CSV.

Error.AdditionalInfo : Exception

Additional information about the error. Example: object { Exception AdditionalInfo }

Task Changelog

Changelog for Task Frends.Excel.ConvertToCSV.

[2.0.0] - 2026-09-02

Changed

  • [Breaking Change] Replaced ErrorMessage (string) in the result object with a structured Error object containing Message and AdditionalInfo.

  • Added standard failure handling options ErrorMessageOnFailure.

  • Updated the task to target .NET 8.

[1.1.0] - 2026-01-22

Fixed

  • Open Excel files with FileAccess.Read to support read-only files

[1.0.2] - 2023-08-01

Fixed

  • Fixed Options.ShouldReadSheet method to check if the Sheet name equals to the given name.

[1.0.1] - 2022-08-05

Change

  • Documentation updates

[1.0.0] - 2022-02-24

Added

  • Initial implementation

Last updated

Was this helpful?