Import of CSV file only inserting half the rows

  • I am running into an issue where only half of the rows from a csv file are getting inserted into a table. Using the Data Viewer, it appears as though it is only grabbing every other line from the file, starting with the third line (which is the second line of data), as the first one is the column headers, and the second one is the first line of data. The file is Delimited, with "," as the Column Delimiter.

    The Flat File Source is setup with the following:

    Format: Delimited

    Text Qualifier: <none>

    Header Row Delimiter: {CR}-{LF}

    There are column headers in the first row, and it is marked in the Flat File Source as such. I also have RowDelimiter as the last column in the Flat File Source, too. It has a 0 Output Column Width, {CR}-{LF} as the Column Delimiter, and TextQualified set to "True".

    I have tried modifying the Flat File Source to either just {CR} or {LF} as the Header Row Delimiter, but that did not change the results at all. I also opened the csv file in ConText editor, and all of the commas are accounted for each of the columns, and that there is a Line Feed/Carriage Return at the end of each row.

    I am looking for any further troubleshooting tips, and possible causes of why only every other line in the file is getting processed. Does anyone have any suggestions?

  • I was able to work through the issue, and can now get all of the rows to be inserted. The file that I was trying to import did not take in account for a RowDelimiter, so eliminating that field in the Flat File Source, and setting the previous column to Column Delimiter = {LF} enabled all rows to show. 🙂

  • miles_lesperance (11/19/2013)


    I was able to work through the issue, and can now get all of the rows to be inserted. The file that I was trying to import did not take in account for a RowDelimiter, so eliminating that field in the Flat File Source, and setting the previous column to Column Delimiter = {LF} enabled all rows to show. 🙂

    Well done and thanks for posting back - by doing so, you'll probably help others in future.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply