Table adding unwanted additional column

I am building a table to track emails that have been sent, and for some reason I am getting an additional column at the end of the table and I can’t figure where it is coming from. Please see the screenshots below:

If anyone could explain where it is coming from and how to get rid of it, I would be most appreciative. Thank you.

1 Like

Hi @tomm, if you inspect that extra column, what shows up for you? When I inspect one of my column headers I see something like this:

<div role="columnheader" class="_main_145ea_1 ..."...>...</div>
<div role="presentation" ...>::after</div>

The column header has another div and span nested within for the column label, and the presentation div is the element that lets you change the column width. I'm curious if that extra column your seeing follows the same css format, or not. That may help us track down what the issue is.

  1. Go to your table settings in Retool.

  2. Look at the list of columns—make sure only the columns you want are checked or shown.

  3. Delete or hide any unwanted columns from the settings.

  4. Check your data source (your JSON, database, or API)—make sure it does not have extra keys (fields) you don’t need.

  5. Save and preview—the extra column will be gone!

Hey @tomm

You can fix this by using the Regenerate Columns option (the icon shown in your screenshot). Clicking that will rebuild the column schema for your table based on the latest query results.

Sometimes Retool keeps displaying a column that existed in an older version of the query, even if the current dataset no longer contains it. Regenerating forces the table to refresh its structure and removes any leftover or “ghost” columns that aren’t actually part of your data anymore.

Just hit the regenerate-columns icon and the extra column should disappear.

Let us know if it still persists — happy to help dig further!