Fixed Width Flat File

Frends.FixedWidthFlatFile.ConvertToXML / 3.0.0

Summary

Turns already-parsed flat file rows into an XML string.

Typical use — the step after parsing, when the rows are headed for an XSLT or schema step

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0
3.0.02026-11-16
Changed
  • Breaking Task now takes fixed width flat file (provided as a string content or read from a file) as input instead of the List<Dictionary<string, dynamic>>.
  • Breaking Flat file can now be given as a string or read from a file (Input.SourceType, Input.FlatFilePath), and the XML can be returned as a string or written to a new file (Options.DestinationType, Options.DestinationFilePath, Result.FilePath). An existing destination file is never overwritten.
  • HeaderRow, HeaderDelimiter and ColumnSpecifications properties are added to Options tab to define the structure of the flat file.
  • Added SkipRows, SkipRowsFromTop and SkipRowsFromBottom options.
  • A flat file without any data rows (e.g. header only, or all rows skipped) now produces an XML with empty Rows element instead of an error.
  • Values are parsed using the culture given in Options.Culture (invariant culture when empty), and the XML is always written using invariant culture, so the result no longer depends on the culture of the agent.
2.0.02026-09-10
Changed
  • Breaking Renamed the data parameter to input.
  • Added Options parameter with ThrowErrorOnFailure and ErrorMessageOnFailure properties, allowing errors to be returned as a failed result instead of throwing an exception.
  • Result object now includes Success and Error properties in addition to Data.
  • Target framework changed to net8.0.
1.1.02026-04-16
Updated
  • Updated Result.Data documentation and task description.
1.0.12023-07-26
Updated
  • Updated task documentation.
1.0.02022-04-07
Added
  • Initial implementation
An unhandled error has occurred. Reload 🗙
Reconnecting… Connection lost.