DataTable.Clear() expression does not produce a value

Hi, I want to delete all items from a datatable, so I assign the blank table variable to DataTable.Clear or DataTable.Rows.Clear

Only thing is that I get error “Expression does not produce a value”

How do I solve this?

Instead of that, you can simply initialize the same data table again as

new datatable() in the assign activity so that it will be a new datatable now @DEATHFISH

How do I initialize the new datatable to follow the same columns template as before?

Why not use Clear Data Table activity? It will retain your columns.

I thought you want to clear all the data in the datatable, so I mentioned that. If you want to get the columns clearing all the rows of data, then you can use Clear Data Table activity which will give you the expected result @DEATHFISH