Hi,
I keep getting this error: Assign: Column does not belong to table DataTable. This is how I have it in my Assign. Was trying to compare two excel spreadsheet. Thanks
Hi @choudhury
Can you please show the contents of dtsheet1?
Is there actually a column named “column”?
Column is Header if that makes sense..:
Hi,
There might be some invisible character b/w in the column name.
So, can you share result of the following expression using LogMessage activity etc?
String.Join(",",dtSheet1.Columns(intIndexForTheColumn).ColumnName.Select(Function(c) AscW(c)))
note: intIndexForTheColumn is index number of the column. We can replace it with integer literal.
Regards,
Hi,
It’s OK anywhere if dtSheet1 have been read.
For example, as the following point.
You can also use the expression in immediate panel in debug mode with breakpoint.
Regards,
Hi,
It seems wrong index number because the result is “Column”.
So can you try 5 instead of 3 (or other) as index number?
Regards,
Tried with 5. What do you mean by “or other”? I did not get that one. Thanks a lot for your prompt reply. Much appreciated.
Hi,
The result shows line feed character exists in the column name. So can you try to use the following expression as the column name?
"Nullable "+vblf+"(Y/N)"
For example
rowSheet1("Nullable "+vblf+"(Y/N)").ToString.Trim.ToLower
Regards,
Thank you. That worked. I do not see any error and the script ran. Much appreciated.