lily.RPA
(Lidia Villaverde)
February 28, 2024, 9:53am
1
Buenas,
Tengo esto con esta expresión:
Y me esta dando este error:
Argument ‘Condition’: BC30518: Overload resolution failed because no accessible ‘Contains’ can be called with these arguments:
y no sé como arreglarlo para que me funcione, ya que lo que yo quiero es identificar una columna de la DT que contiene el año que es igual al que tengo en el excel
Gracias.
vrdabberu
(Varunraj Dabberu)
February 28, 2024, 9:55am
3
Hi @lily.RPA
Try this:
currentItem.ColumnName.ToString().Contains(strNaio)
Regards
lily.RPA
(Lidia Villaverde)
February 28, 2024, 9:57am
4
lo acabo de probar y me da error
vrdabberu
(Varunraj Dabberu)
February 28, 2024, 9:58am
5
Hi @lily.RPA
What is the datatype of strNaio it is String only Right?
Regards
lily.RPA
(Lidia Villaverde)
February 28, 2024, 9:58am
6
me da error, lo acabo de probar
rlgandu
(Rajyalakshmi Gandu)
February 28, 2024, 9:58am
7
@lily.RPA
Is it giving you the same exception or you will get another
lily.RPA
(Lidia Villaverde)
February 28, 2024, 9:59am
8
Sí, es un String el tipo de dato
lrtetala
(Lakshman Reddy)
February 28, 2024, 10:01am
9
@lily.RPA
Can you try to delete the for each activity and reinitialize it once, because it is working in my pc
vrdabberu
(Varunraj Dabberu)
February 28, 2024, 10:01am
10
Hi @lily.RPA
It’s working at my end
Could delete and reinitialize the activity.
Try to change the Scope of strNaio to Main Sequence.
Regards
lily.RPA
(Lidia Villaverde)
February 28, 2024, 10:02am
11
Es el mismo error, que no permite convertir boolean a String, ni tampoco boolean a char
lrtetala
(Lakshman Reddy)
February 28, 2024, 10:04am
12
@lily.RPA
Can you try to update UiPath.System.Activities package
rlgandu
(Rajyalakshmi Gandu)
February 28, 2024, 10:05am
13
@lily.RPA
Check your strAnio datatype run this in Debug mode and take the screenshot where you get the exception and put it in here
lily.RPA
(Lidia Villaverde)
February 28, 2024, 10:05am
14
ya lo solucione, estaba repetida la variable,mil gracias a todos
vrdabberu
(Varunraj Dabberu)
February 28, 2024, 10:06am
15
Hi @lily.RPA
Hope your query is resolved. If yes, please mark my post as solution to close the loop or if you have any queries, I’m happy to help.
Regards
system
(system)
Closed
March 2, 2024, 10:07am
16
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.