You can try toggling off Add Headers and read the column from the second line like so:
But even then, the system will generate its only set of columns.
Say you have five columns, these are the names of the autogenerated Columns:
[Column1,Column2,Column3,Column4,Column5]
But that doesn’t matter, since when you are writing the range back to Excel, you can toggle Add Headers off once again, and it will add the items from A2 onwards.
Use a write range and pass dt as knock and enable add headers so that it will first write the entire DATATABLE to the excel file
Now use a Write cell activity and mention the input value as String.Empty and cell position as str_cellposition
This will work
And if you want to use that as a DATATABLE once after using write cell activity use a rrad range act and get the DATATABLE with header
Now the column with empty header will come as Column1
An Alternate Method would be to Add another Data Row as the first row with the values of the Column Names.
Then Later, we can choose which of the values you need to make null.
For instance, the below example adds an Empty Row at the first and then using the Write Range Activity withoutAdd Headers enabled, we get the Empty values as the first row in Excel or as the Column Names in Excel.
Creating a New Datarow and adding at the first position.
Resultant DT with Empty first row values which you can make as the Columns in Excel
But we do need to understand that since we have to reference each of the column with some name, if the column Names are empty we get Column1, Column2, Column3,.... and so on as default column names