I’m sorry to post many times.
I want to delete the letter “A” from all values in the data table.
I tried this method but failed with GENERATE DATATABLE ACTIVITY.
The cause seems to be because the data table value contains “,”.
Is there any other solution?
give a try on following, replace the datatavar with your variablename:
(From r In DataTableVar.AsEnumerable
Select ia = r.ItemArray.toList
Select ic = ia.ConvertAll(Function (e) e.ToString.Replace(“A”, “YourReplacementValue”).toArray()
Select dtCorrected.Rows.Add(ic)).CopyToDataTable()
the text replace approach is also a good option for solving the task. And for beginning doing the replacement with for each row and an inner for each iteration over the columns should work as well
Let us know if you do need more help. Feel free to share some sample data with us
@tera
Yes is used within an assign Activity. The Return is configured under the TO section and is of Datatype Datatable
The variable dtcorrected ist a Second Datatable. ITS recommended to initialized it before running the linq within an assign and using the Statement yourorigindatatablevar.clone