Select error

studio

#1

hi,

i had the following error:

Assign : Syntax error: Missing operand after ‘ID’ operator.

i had used:
dt2.select(“Personal ID like’”+"?"+"’")

where dt2 is a datatable


#2

Hi @abdel,

Can you try the column name within []. Try
dt2.select(“[Personal ID] like’”+"?"+"’")


#3

Thank you,

but i think it a problem in the header name,
is there any methode to get the headers name?


#4

Hi,

Please check below links:

  1. How To Find Respective Column Name of a specific Item in a data table

  2. https://www.uipath.com/kb-articles/how-to-extract-column-headers-in-a-csv-file


#5

Hi,

i had to use dt3.Columns.ColumnName.ToString for a single columns “D” ?!