Error using studio x during vlookup activity

hi, mayi ask if anyone can help me on this? im using studio x community.


m automation start with text file then i convert into excel

HI,

What type of variable did you set at SaveTo (OutputTo) property?
It may solve it, if set string type variable.

Regards,

Hi @Nur_Amin

Can you specify what are you trying to do.

Regards


hi, where can i check that?

hi my activity vlookup has errror regarding string

@Nur_Amin

Can you share the excel file the value you are trying to lookup.

Regards

Hi,

Can you try to create string (text) type variable, then set it at SaveTo?
Next, assign it to CurrentRow.ByField(“Segment”) as the following?

Regards,

1 Like

hi how to create string?

HI,

We can create new variable as String in DataManager panel.

image
If there is no DataManager panel, can you share your version of StudioX?

Regards,


do i have to create new variable for string?

my data manager look a bit different

Hi,

The above seems no problem. Please set variable1 at SaveTo property. Next use SetVarableValue activity like CurrentRow.ByField("yourColumn") = variable1

Regards,

hi i have try and successful but the output become #N/A

Hi,

Perhaps, you should review your settings of VLookup activity.
For now, can you check if each input value is same what you expect, using MessageBox activity etc?

Regards,

hi may i know how to check?

Use MessaegBox activity to set the following, just before VLookup activity

image

hi, sample as below. group is what i want to lookup

code Group
1 Small
2 Large
3 Big

@Nur_Amin
If possible can you the excel file.

Regards,