This error means?

Hi All,

what does this error means?
my code was working fine but suddenly it started giving this below error.

Thanks
Taruna

Hey!

Instead of giving the row.item(1) in Assign

Create a variable and pass the Value

Try some thing like this:

Assign Abc = row.item(1).ToString.Trim

Regards,
NaNi

HI,

Can you share content of $ExceptionDetails in Locals panel when exception occurs in debug?

image

Regards,

1 Like

Hi,

sharing below screenshot of exceptionserror details in locals

That i have done and now was trying a new logic. It was working fine

Attaching more clearer picture.

image

HI,

Can you share whole message of $ExceptionDetails using magnifying glass icon?

image

Regards,

Hi,

sharing the clear image of exception error.

image

This is bad advice. It won’t fix anything. It only makes things more complicated.

Hi @taruna.mehra,
I think it should be row(1) instead of row.item(1) for that Assign Activity.

Hi,

Please click magnifier glass icon as the following. Then Local value dialog will be shown. And Can you copy whole message and share it?

Regards,

Both are valid and both give the same result.

Hi,

Below is the detailed screen shot.

Thanks
Taruna

You have referenced a column index (1) that does not exist. Remember, the columns in a datatable are 0 based index. So the first column is 0, not 1.

But it’s usually better to reference by column name instead of index. Easier to read and more reliable.

Yes actually I wanted to make generic. My motive was printing table of 2 in data row1 so I have done the multiplication 0 and with variable so that I can get the output table of 2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.