Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithIn your original post, it says that you put the column names into the parameter of "Filename". I assume you meant "Fieldnames".
The only reason I can think of for the out of memory error is if the CSV file is badly formed, such as a beginning double-quote that is not properly matched to an ending quote, etc.
Always carefully read the error messages.. sometimes they change when you introduce new conditions. It might be that you're no longer getting the memory error, but instead you're getting a message such as "Found 1199 columns - expected 1200"
=======
Here's one thing to try.
Take the file that is failing, and setup a Delimited File node to read it.
Use FieldSeparator=\n and RecordSeparator=\n and Optional-FieldNames=Text
This will read all the records and give you an idea how long the file is.
Then, use a filter on that output with just this code:
emit execCount as Rownum
emit strlen(Text) as Chars
Then either sort by Chars or use the histogram node - see if you can find any records that exceedingly long (megabytes in length).
If all the records look to be a reasonable length, then it's time to check for missing quotes.
======
Again, add a filter off of the delimited file node and use this code:
a1=strlen('Text')
t='Text'.replace("\"","")
a2=strlen(t)
emit execCount as RowNum
MatchedQuotes=((a1-a2)%2 == 0)
emit MatchedQuotes
where not MatchedQuotes
Run that and see if you get any records out of it. If you do, then it's likely that you need to get the source files repaired.