Braki
(Braki Meoni)
January 18, 2018, 9:29pm
1
Hello
I’m trying sum the values an Excel column with the activity “For each row” and although the sum is well done, the process never end and have to reset Uipath. Attach the process for you can helpme what is causing the error.
for each.xaml (42.4 KB)
Libro1.xlsx (237.5 KB)
Thank you very much for help!
arivu96
(Arivazhagan A)
January 20, 2018, 12:03pm
2
Hi,
@Braki
instead forloop you can use LINQ.
use below code to get sum of the column
Convert.ToString(BaseTotal.AsEnumerable().Sum(Function(row) row.Field(Of Double)(“Importes”)))
for each.xaml (39.4 KB)
use this xaml file @Braki
Regards,
Arivu
Braki
(Braki Meoni)
January 22, 2018, 3:27pm
3
Hi,
@arivu96 , when try prove your process I received the following message:
the column exists and the name is correct
thanks for the help again
@Braki , do you have “Add Headers” checked on your Read Range?
arivu96
(Arivazhagan A)
January 22, 2018, 3:37pm
5
Hi @Braki
In Read range activity ->properties-> Add header check box need to check.
(Refer the xaml what I send to you)
Regards,
Arivu
Braki
(Braki Meoni)
January 22, 2018, 4:34pm
6
yes that option is activated!
arivu96
(Arivazhagan A)
January 22, 2018, 4:44pm
7
HI,
@Braki refer this xaml.
for each.xaml (39.4 KB)
Regards,
Arivu
Braki
(Braki Meoni)
January 22, 2018, 5:41pm
8
same error “Column ‘Importes’ does not belong to table”
arivu96
(Arivazhagan A)
January 22, 2018, 5:53pm
9
Hi @Braki ,
i am getting output correctly can you check again
for each.xaml (9.9 KB)
Libro1.xlsx (227.5 KB)
Regards,
Arivu
1 Like
Braki
(Braki Meoni)
January 22, 2018, 6:03pm
10
Hi
It worked correctly !
Thank you very much for the help