How to replace a null value with empty string in datatable in UiPath
Please refer the screenshot, i want to replace this NULL value into Empty String in UiPath ACTIVITY
Anil_G
(Anil Gorthi)
2
@sharu_priya
If its in datatable then use this
- For loop on datatable
- For loop on column dt.Columns and change type argument to datacolumn
- If condition with IsNothing(Currentrow(currentitem)) Or String.Is ullOrEmpty(currentrow(currentitem).ToString.Trim)
- Use assign on the then side with currentrow(currentitem) = string.Empty
Cheers
Can it be done in SQL Query after selecting the table using RUN COMMAND
Anil_G
(Anil Gorthi)
4
@sharu_priya
In the select query instead of column name use ISNULL(columnname,’’)
Assuming yours is sql server
Cheers