# Help needed on loading table and creating search box to search filter data (Bible)

**URL:** <https://discourse.processing.org/t/help-needed-on-loading-table-and-creating-search-box-to-search-filter-data-bible/27870>\
**Category:** Beginners\
**Created:** [February 16, 2021, 8:35pm UTC](https://discourse.processing.org/t/help-needed-on-loading-table-and-creating-search-box-to-search-filter-data-bible/27870 "2021-02-16T20:35:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [February 16, 2021, 9:05pm UTC](https://discourse.processing.org/t/help-needed-on-loading-table-and-creating-search-box-to-search-filter-data-bible/27870/3 "2021-02-16T21:05:48Z")

</div>

Hi again, 😉

From your second screenshot, you can see that there’s an error from the red colored message that appeared at the bottom of the window.

In programming, compilers (what translate your code into machine code) will most of the time indicate where your error is located and why.

It says :

```auto
mammals.csv does not exist or could not be read
NullPointerException

```

So the file clearly doesn’t exist! 😜

First let’s look at what the `loadTable()` function takes as arguments :

> loadTable(filename)
> 
> **filename** String: name of a file in the data folder or a URL.  
> **options** String: may contain “header”, “tsv”, “csv”, or “bin” separated by commas

So the first parameter must be the path of an **existing** file on your computer (here we want a .csv file). Here “existing” is important because otherwise the program can’t load it.

Now in Processing, when you indicate a path it’s supposed to be in a `data` folder inside your sketch folder, where your Processing code is located **if you saved your project**.

So are you sure that you have a `mammals.csv` file in a `data` folder in the sketch folder? To see it, you can go in the options `Sketch -> Go to sketch folder`.

_Note : this is the second post, see the first one : [Where is the directory to save your .csv data?](https://discourse.processing.org/t/where-is-the-directory-to-save-your-csv-data/27846)_

---

_[View the full topic](https://discourse.processing.org/t/help-needed-on-loading-table-and-creating-search-box-to-search-filter-data-bible/27870)._
