Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:06:08+00:00 2026-06-15T23:06:08+00:00

I am using FileHelpers to read a CSV file that have hundreds of columns

  • 0

I am using FileHelpers to read a CSV file that have hundreds of columns but I only need the first twenty or so, so while creating the mappings in the class I only put those twenty columns.

When do the parsing, I get the following exception

Delimiter ‘,’ found after the last field ‘CompanyDivision’ (the file
is wrong or you need to add a field to the record class)

I read in other answers that a hack for this is to put dummy fields for the rest of the columns you don’t want to read but, as I said, I have hundreds of those.

Is there a way to configure the engine to stop after a certain number of columns? or is there a way to extend or modify the engine to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:06:10+00:00Added an answer on June 15, 2026 at 11:06 pm

    You can try adding an array dummy field:

    private string[] mDummyField;
    

    With that the rest of the fields will be in that field. You must use the last version of the library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a record that I write out to a CSV file using FileHelpers.
Question: I need to read a CSV file. I use the FileHelpers library to
I'm using the FileHelpers 2.0 library to write a CSV file using the ClassBuilder
I need to read from a CSV/Tab delimited file and write to such a
I have a CSV file that is being exported from another system whereby the
Good day to all, i have a problem regarding CSV parse using File Helper.
I have a CSV file I need to process which is a bit of
I have read in some CSV values, line by line, that have the following
I am currently using the FileHelpers library (v2.0.0.0) to parse a CSV file. The
I am using the FileHelpers libraries to upload a CSV file to SQL Server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.