System DataSet to todataset, IndexError: Row 0 doesn't have the same number of columns as header list

I know this has been asked before , however I need some light at the end of the tunnel.
The length of both data lists are the same, so what I'm missing here.

Put square brackets around test2 to make it a list of lists, or perhaps better stated: a list of rows.
system.dataset.toDataSet(newHeader, [test2])

In this case, the length should be one, since there is only one row, and the row should have 4 elements, since there are 4 columns.

3 Likes