# The function addColumn(String) does not exist

**URL:** <https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459>\
**Category:** Libraries\
**Created:** [January 5, 2023, 12:42pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459 "2023-01-05T12:42:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabisiiuuu](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Post date:** [January 5, 2023, 12:42pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/1 "2023-01-05T12:42:19Z")

</div>

Hello!  
I tried running this Table code from the page of Processing [https://processing.org/reference/Table.html](https://processing.org/reference/Table.html)

```auto
Table table;

void setup() {

  table = new Table();
  
  table.addColumn("id");
  table.addColumn("species");
  table.addColumn("name");
  
  TableRow newRow = table.addRow();
  newRow.setInt("id", table.lastRowIndex());
  newRow.setString("species", "Panthera leo");
  newRow.setString("name", "Lion");
  
  saveTable(table, "data/new.csv");
}

// Sketch saves the following to a file called "new.csv":
// id,species,name
// 0,Panthera leo,Lion

```

but it says that the addColumn function does not exist.  
I used to have the v3 and I thought updating it to the v4 (4.1.1) it would work. I already deleted the v3 folder thinking it was overlapping but the same error keeps appearing.

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [January 5, 2023, 2:10pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/2 "2023-01-05T14:10:56Z")

</div>

I have tried this code in both 3.5.4 and 4.0.1 and they both executed without any error messages being generated.

Perhaps someone else can try 4.1.1 as I have not downloaded it yet.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [January 5, 2023, 3:04pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/3 "2023-01-05T15:04:30Z")

</div>

Runs ok here with Processing 4.1.1; comma separated file is saved in ‘data’ folder. I always thought that this was a deceiving demo name. You never see a table unless you open the .csv file with a spreadsheet app.

---

<div class="post-metadata">

**Author:** ![sabisiiuuu](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Post date:** [January 5, 2023, 3:25pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/4 "2023-01-05T15:25:37Z")

</div>

If it works for the both of you, maybe the problem lies in my laptop. I’ll try and delete the v4 and downloading it again. Move the folder to another place and see what happens.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [January 5, 2023, 3:31pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/5 "2023-01-05T15:31:07Z")

</div>

Usually the Processing folder is inside the Documents folder.

---

<div class="post-metadata">

**Author:** ![sabisiiuuu](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Post date:** [January 5, 2023, 3:35pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/6 "2023-01-05T15:35:23Z")

</div>

I usually have all my apps inside the download folder. I’ll move it to the Documents one then.

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [January 5, 2023, 3:44pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/7 "2023-01-05T15:44:23Z")

</div>

> [@svan](#):
>
> Processing folder

This refers to the folder where you store your sketches, not where you store the installed Processing app.

---

<div class="post-metadata">

**Author:** ![sabisiiuuu](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Post date:** [January 5, 2023, 4:09pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/8 "2023-01-05T16:09:49Z")

</div>

Now it works. I had to change the name of the file to the same as the folder where it was. Oops.  
Now that I have that solved, I have to go back to the code that I was originally working on and finish solving it :v. Thanks people!

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [January 5, 2023, 4:24pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/9 "2023-01-05T16:24:02Z")

</div>

I don’t worry about where the Processing app is installed on a Mac; it automatically goes in the Applications folder. Windows is a different cat; would go in C:\ProgramFiles I’m guessing. Problem is it starts off in the Downloads folder and has to be moved from where it starts. Makes a difference if it is a .zip file or an .exe, then we get into ‘extracting’ and directing where it goes. I like my Mac.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 5, 2023, 7:14pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459/10 "2023-01-05T19:14:50Z")

</div>

- Mac is the only Processing version w/ an actual install, which the OS recognizes as registered.
- Both Windows & Linux versions are presented in a standalone compressed file.
- We need to decide the place where Processing’s extracted folder goes into.
- My advise is to pick an unguarded non-system path, like “Documents”, to extract Processing into.
