title: Why should I mark the last column of class model as optional when importing a CSV file with FileHelpers?
body: <p>I read many questions here on StackOverflow trying to find a solution to a simple problem. I'm importing a CSV file using FileHelpers library. The CSV file has no delimiter at the last column, and when I try to import I get the error</p>
  
  <pre><code>Line: 2 Column: 179. Delimiter ',' not found after field 'Active' (the record has less fields, the delimiter is wrong or the next field must be marked as optional)
  </code></pre>
  
  <p>It's right, because my file looks like</p>
  
  <pre><code>...,Clip Ons,,D02,8 Card Wallet,Y
  ...,D02,Bathurst Chain Crossbody,Y
  </code></pre>
  
  <p>One solution I found is to mark the last column using attribule <code>FieldOptional</code>. The problem is that the column isn't optional; it must throw an error if the last column is null.</p>
  
  <p>How can I handle this situation avoiding '<code>FieldOptional</code>' attribute?</p>