Error for Filter DataTable

Hello All,

Have a good day !

I’m getting below error -

Filter Data Table: the value for argument ‘Column Name’ is not set or is invalid.

However -

  • I have checked add header of datatable

  • Columns are also correctly mentioned in filter data table.

Please help me to resolve this error.

Hi @I_am_Praj

Can you show what you did inside configure please. As per error the column name is wrong or is not given

Name should exactly match with what you have .

Cheers

Hi @I_am_Praj

Instead of Column Name try with Column Index

Regards
Gokul


Filterdata
I have given Column names same as extract one

Then what name should be in Extract data?

Hi @I_am_Praj

You can Put 0 instead of Interface

Regards
Gokul

@I_am_Praj

Can you check if there are spaces in column name and also you can as well use column number as 0 for first column

Run in debug and from locals panel please check the column name

Cheers

Hello @I_am_Praj

You can do as below. Instead of column name, you can use the index as in the screenshot.

image

Thanks

@Rahul_Unnikrishnan @Anil_G @Gokul001

I tried to use 0 instead of column name but it didn’t worked

Can you share the error screenshot? @I_am_Praj

Try to Remove the Double Quotation in the Column

image

Regards
Gokul

This is the error - Filter Data Table: the value for argument ‘ColumnIndex’ is not set or is invalid.

Hi @I_am_Praj

If you are using index then directly give 0 do not give double quotes arouud it. Please remove double quotes and the issue should be resolved

Cheers

i have tried this too… :neutral_face:

HI @I_am_Praj

Can you Print the Dt in the excel file and check it.

Use Message box activity to get the count of the data table

Dt.Rows.Count

And share the screenshot

Regards
Gokul

Hello @Gokul001

Attached is this workflow which have created.where should i use message box?
I’m reading the values from read rang then extract the value with the help of extract data table & then used filter activity.

.

BR,
Praj

Hi @I_am_Praj

You can use Message box after the Extract Table Date activity

InterfaceDataTable.Rows.Count

Regards
Gokul

Hello @Gokul001 Getting only “0” count in message box.
Note - also not getting output of extract table in immediate window.

Hi @I_am_Praj

That means your input datatable is empty…please check if you are reading the data properly

Cheers

Your Data table is empty Right? Can you extract the Data correctly and check it. Issue with the extraction part.

Here While extracting the You getting count as Zero athat why you did not get the column name.

Hope this will helps

Regards
Gokul

1 Like

Hi @I_am_Praj ,

Place an IF condition: InterfaceDataTable.Rows.Count>0

If True, then use Filter Data Table activity. It will solve your issue.

1 Like