Skip to content

CSV Columnizer First Line #707

Description

@Ho-Schmi

I get an error in the CSV columnizer config, if I uncheck "first line contains field names" and hit OK. I can close the dialog, but then no columnization takes place. If I check it, it works, but since the file has no header it's a bit strange to have the values of the first line as field names.

Error Message shown:

Configuration.HasHeaderRecord is false.
IReader state:
ColumnCount: 7
CurrentIndex: -1
HeaderRecord:

IParser state:
ByteCount: 0
CharCount: 86
Row: 1
RawRow: 1
Count: 7
RawRecord:
2026-09-01 07:09:58.1980; INFO; 2001:7c0:3006:3014::8602:1a1d; ; ; ; zrnsh01 logged in

ReaderException
at CsvHelper.CsvReader.ReadHeader()
at CsvColumnizer.CsvColumnizer.Selected(ILogLineMemoryColumnizerCallback callback)
at CsvColumnizer.CsvColumnizer.Configure(ILogLineMemoryColumnizerCallback callback, String configDir)
at LogExpert.Dialogs.FilterSelectorForm.OnConfigButtonClick(Object sender, EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, UInt32 msg, WPARAM wparam, LPARAM lparam)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPesky little gritter, needs squashing

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions