Column ‘CurrentName’ does not belong to table DataTable

I’m doing the stock broker project on this website: RPA Stock Market

And this error just came up? I actually did all the steps like were shown in a UiPath YouTube video so not sure why I keep getting errors ?

Hi,

Can you try to debug run then check if the datatable has the column at Locals panel when error occurs?

Regards,

Hi,

Can you check content of datatable at Locals panel?

Regards,


Hi,

Can you click the following red arrowed icon then share its content?

Regards,

Hi,

As there is no column named “CurrentName”, probably the expression should be as the following. Can you try this?

CurrentCompany("Company Name").ToString()

Regards,

1 Like

Hi

I think the correct column name is “Company Name” and not “CurrentName”

So replace the same in your activity

There is another option as well if u don’t know the column name but now the column position
CurrentRow(index position).ToString

Here in index position instead of name u can mention number like 0 for first column, 1 for second column like this
CurrentRow(0).ToString here instead of Company Name

Hope this helps

Cheers @Sara_Piana

1 Like

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