Rearrange

How to rename the column name in datatable…

Hello @Devendra_Bhardwaj,

Please check this solution:

Hope it helps!
Best regards,
Marius

Thank you…@marius.
Screenshot_20230204_234023

Hey that means that any of your variables in the write range activity is null, please debug your process and see what’s happening

Regards

Thank you @fernando_zuluaga

1 Like

image

Hello @Devendra_Bhardwaj ,

For the instruction to change the column name, please use an assign activity (https://docs.uipath.com/studio/docs/the-assign-activity ) not an Write Line activity.

To check you can use this sequence:
Write line: yourDT.Columns(0).ColumnName
Assign: yourDT.Columns(0).ColumnName = “New Column Name”
Write line: yourDT.Columns(0).ColumnName

Carefully check again Paul’s solution:

Best regards,
Marius