# File reader Node failing to access Large TEXT file containing 34 Millions records

**URL:** <https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218>\
**Category:** KNIME Analytics Platform\
**Created:** [October 25, 2020, 11:16pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218 "2020-10-25T23:16:30Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 25, 2020, 11:16pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/1 "2020-10-25T23:16:30Z")

</div>

I have a large file that is a pipe delimited text file. this file is having 35 millions records in it. I used the file reader node facing below challenges.

1. Unable to add Pipe i.e. | as Delimiter
2. Node is failing to read the file due to large line size i.e. 35 millions.

I want to create a table with this file and compare the data with database table. but while accessing the file through file reader node, getting error as " Execute failed: New line in quoted string (or closing quote missing). In line 3079174."

What is the best possible way to work with this problem?

I am okay with solution if I have to work with splitting the file into multiple file.

Appreciate any help you can give.

Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [October 26, 2020, 5:48am UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/2 "2020-10-26T05:48:44Z")

</div>

@singlaamit501 welcome to the KNIME forum. You could try the new CSV reader node or the R package readr which works in most cases.

Also if you have unbalanced quotes you might have to read the docs and tweak the settings.

Here is an overview over several nodes  
[https://hub.knime.com/mlauber71/spaces/Public/latest/forum/kn\_forum\_28064\_r\_import\_csv\_r\_readr\_strange\_charaters](https://hub.knime.com/mlauber71/spaces/Public/latest/forum/kn_forum_28064_r_import_csv_r_readr_strange_charaters)

---

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 26, 2020, 4:46pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/3 "2020-10-26T16:46:54Z")

</div>

I want a solution for large text file containing 35 millions rows. Also, i don’t know how to access the R package reader. more detailed answer is appreciated.

Thank you for looking into my problem. I am new to KNIME.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [October 26, 2020, 7:45pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/4 "2020-10-26T19:45:34Z")

</div>

I would recommend to try the 3 options from the example from the KNIME hub I linked. R would only be a matter of last resort.

If you could provide us with a sample of the data including the lines that would result in the problems it might be easier to assist.

Other that that you would have to try a few options and settings.

If you are interested in using R I have provided a collection how to install R:

> **[A meta collection and article about R and KNIME – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/_r_installation_on_knime_collection)**
>
> A meta collection and article about R and KNIME R gives you the power to do a lot of great things combined with KNIME but to get R and KNIME together up and ru…

---

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 26, 2020, 8:52pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/5 "2020-10-26T20:52:48Z")

</div>

Thanks again for your generous help. I will look into this. I have a text file which i want to compare with database table. With **35 millions** lines mentioned below.

Example.  
XXXaabdsdf-d238-50|XX|2XXXXXXX5|BXXL|FXXXXXX|X|1XXXX|||XXX E XXX ST APT XL||||XX|XX|XXXX|  
XXXaabdsdf-d238-50|XX|2XXXXXXX5|BXXL|FXXXXXX|X|1XXXX|||XXX E XXX ST APT XL||||XX|XX|XXXX|

Any idea how i can handle **35 million lines**. bcoz file reader allow me to only 1129362 lines to create a table out of this file.

---

<div class="post-metadata">

**Author:** ![Luca\_Italy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@Luca\_Italy](https://forum.knime.com/u/Luca_Italy)\
**Post date:** [October 27, 2020, 12:00pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/6 "2020-10-27T12:00:23Z")

</div>

Hi,  
you can actually use a pipe delimiter in a file reader node:

![image](https://forum.knime.com/uploads/default/original/3X/0/0/00ecf6f0e997b1d8827a70330b76aecd9f6bc98c.png)

Just write in a pipe.

About the error: you probably have a cell at that line that is raising the error, so you can try to make these changes in configuration:

![image](https://forum.knime.com/uploads/default/original/3X/3/6/36b437bf2cb57836917cb1a84e20e36fa2130a56.png)

![image](https://forum.knime.com/uploads/default/original/3X/c/5/c5d3a5def19d8947289de135e22d3a196cb4f811.png)

![image](https://forum.knime.com/uploads/default/original/3X/d/0/d09da5e18655ff19217d3463183411562602563f.png)

Let me know if is working now.

Luca

---

<div class="post-metadata">

**Author:** ![Mark\_Ortmann](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@Mark\_Ortmann](https://forum.knime.com/u/Mark_Ortmann)\
**Post date:** [October 27, 2020, 5:49pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/7 "2020-10-27T17:49:12Z")

</div>

What you could try is the simple file reader or csv reader labs. Both of them are way faster than the file reader and are somewhat more robust when it comes to quoted strings.

Furthermore if that node also fails please investigate what’s wrong with the line mentioned in the file reader. Maybe you could provide us with the row so we can help you to find the proper settings.

---

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 28, 2020, 3:43pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/9 "2020-10-28T15:43:19Z")

</div>

Hello again mate - I Figure out that File reader node is only showing 4664593 rows. I have total 34,000,000 rows in the Text file. How I can access all those together.

---

<div class="post-metadata">

**Author:** ![Luca\_Italy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@Luca\_Italy](https://forum.knime.com/u/Luca_Italy)\
**Post date:** [October 28, 2020, 4:16pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/10 "2020-10-28T16:16:49Z")

</div>

did u get some errors?

---

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 28, 2020, 4:25pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/11 "2020-10-28T16:25:31Z")

</div>

No error. File reader node only shows 4664593 rows and able to complete the execution sucessfully.

---

<div class="post-metadata">

**Author:** ![Luca\_Italy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@Luca\_Italy](https://forum.knime.com/u/Luca_Italy)\
**Post date:** [October 28, 2020, 4:31pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/12 "2020-10-28T16:31:10Z")

</div>

🙂 are you really sure that you have 34M rows?

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [October 28, 2020, 4:38pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/13 "2020-10-28T16:38:24Z")

</div>

Is it possible that because of strange delimiters some lines get skipped?

Another possibility is to try and use KNIME’s local big data engine and create an external table and see what this does. Other that that I would recommend trying to use the R package since this can handle a lot of import problems.

> **[KNIME and Hive - load multiple CSV files at once via external table – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_bigdata_hive_csv_loader/m_001_import_hive_csv)**
>
> KNIME and Hive - load multiple CSV files at once via external table. Also: toy around with internal and external tables and then create a Hive table with a par…

---

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 28, 2020, 4:53pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/14 "2020-10-28T16:53:15Z")

</div>

As i said all the lines are having same format

example- XXXaabdsdf-d238-50|XX|2XXXXXXX5|BXXL|FXXXXXX|X|1XXXX|||XXX E XXX ST APT XL||||XX|XX|XXXX|

Can you give me sample workflow for Big data engine. I have never used Big data engine or R package before.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [October 28, 2020, 5:00pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/15 "2020-10-28T17:00:49Z")

</div>

The examples have been in the links to the KNIME hub. You could download them and try to adapt them to your needs. Also it would help you to understand how these things do work.

---

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 28, 2020, 8:38pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/16 "2020-10-28T20:38:12Z")

</div>

I am trying to add this workflow. getting error as “Hub request failed”

Also i tried to splitting the text files into multiple file and then access and build a loop around this so that I can access all 35 millions records. Is there any mistake in my workflow , because i am not getting desired results.

 ![image](https://forum.knime.com/uploads/default/original/3X/a/7/a71f82498aa09afbcd21ac5b9abc6077e07aa66f.png)

---

<div class="post-metadata">

**Author:** ![izaychik63](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/i/e9a140/32.png) [@izaychik63](https://forum.knime.com/u/izaychik63)\
**Post date:** [October 28, 2020, 8:49pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/17 "2020-10-28T20:49:57Z")

</div>

You can try to load it here

> **[m\_001\_import\_hive\_csv \[Workflow\] — NodePit](https://nodepit.com/workflow/com.knime.hub/Users/mlauber71/Public/kn_example_bigdata_hive_csv_loader/m_001_import_hive_csv)**
>
> KNIME and Hive - load multiple CSV files at once via external table
> 
> KNIME and Hive - load multiple CSV files at once via external table. Also: toy around with internal and external tables and then create a Hive table with a partition taken from an...

---

<div class="post-metadata">

**Author:** ![singlaamit501](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@singlaamit501](https://forum.knime.com/u/singlaamit501)\
**Post date:** [October 28, 2020, 9:50pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/18 "2020-10-28T21:50:54Z")

</div>

I really appreciate your response. This things looks more complicated to work with. There is no proper step to how to configure. I am newbie to everything.

---

<div class="post-metadata">

**Author:** ![Mark\_Ortmann](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@Mark\_Ortmann](https://forum.knime.com/u/Mark_Ortmann)\
**Post date:** [October 30, 2020, 5:10pm UTC](https://forum.knime.com/t/file-reader-node-failing-to-access-large-text-file-containing-34-millions-records/28218/19 "2020-10-30T17:10:34Z")

</div>

I think it would help us If you could send us the line where the node failed before you changed its configuration. I think @mlauber71 is right and your format is not consistent.

Best  
Mark
