Cannot find column in csv file

Hi all,
i’m getting error when i run it the program.
My error is => “Assign: Column ‘Semt’ does not belong to table DataTable.”

My csv file :

smt

and Code screen :

Thanks.

@yigit.aybey can you upload the csv file

You can use the output to data table (as a string) to see in the logs how the CSV is being read as a data table. or run in debug mode and use the locals panel.

I would also check if there is any whitespace after the word?
Maybe open the CSV in notepad.

SahibindenIstanbul.zip (6.9 KB)

In such case we can set a breakpoint
debug the xaml and get paused
open immediate panel and type in: YourDataTableVar.Columns and check the column names

@yigit.aybey
change your delimiter to SEMICOLON, then it should work

2 Likes

Please check if your column name has any extra Spaces.

Regards,
Saloni

lol . mine was comma.

thanks.

1 Like

I found it where i did mistake. i checked the solution :slight_smile: but thx anyway.

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