Error using studio x when to vlookup


may i ask regarding this error? before this this script is ok. im using studio x UiPath

@Nur_Amin

Can you please tell what is the value that you have given in the vlookup

As per error looks like the value provided is not string or the value returned is not

Cheers

the value to lookup is words for eg

first column second column( value to lookup)
1 a
2 b

@Nur_Amin

Can you try giving the input variable as var.ToString

And also give the output variable type as generic value if that supports

Cheers

hi where can i change this?

@Nur_Amin

In the search value field of vlookup …click on plus and open in advanced editor then give variable.ToString

And in the output field which ever variable is used in svae for later …change the dtatype to generic value

Cheers

image
hi where do i need to write the string?

@Nur_Amin

Try like this

CurrenRow.Byfield("Code").StringValue

Hope this helps

Cheers

hi for the output how? this is mine
image

@Nur_Amin

Output you are trying to save to same excel again?

If so try wothout changing only in output else assign to a variable and then use another assign to give the value to required cell

Cheers

yes in same excel, so i did not need to change anything right?

@Nur_Amin

Input you need to change as above …in output use as is

Cheers

hi i have try but the vlookup is not cpatured but it can run successfully

@Nur_Amin

That depends on the value and the column type you supply

cheers