DataTable Column Name

Hi All,

My actual column names are as below

But when I write the data table to excel. Why I don’t get the exact column names as in application

I get as below

@dutta.marina,

These must be changed in Table Data Extraction. Check what column names are there in Extraction wizard.

Check at Datatable level before writing it to Excel.

If you need to change the column name in Datatable use below snippet in Assign activity.

dtInput.Columns(columnIndex or columnname).ColumnName = "New Column Name"

Hello @dutta.marina

You can define the column names in the Table Extraction Wizard.
Alternatively you can ajust the names in the “Properties” panel of your “Table Extraction” activity.

Regards
Soren

Hi,

It seems that the other attributes within the elements containing the column names are also being written to the column name. Since all of these columns have sorting functionality, it looks like ‘sort,’ ‘ascending,’ and ‘descending’ appear in every column. To avoid this, you can manually remove or replace the unwanted text in the column names within the datatable before writing it.

Alternatively, you can use the Find Children activity to retrieve the content of each column individually and then combine them.

Regards,

Kardelen

Hie @dutta.marina when you are extracting data from the website before saving it check the column name that bot is extracting and edit as per your suitable name.
cheers Happy Automation

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.