I am facing an issue while getting the values of columns from datatable. Not able to extract the values on the basis of column name from datatable? it is throwing an exception that element not present in datatable although using same with excel sheet it is processing.
Use header option is selected?
Check about whitespaces in columns name.
use for each row in YourDataTable.Columns
use assign activity with below
YourDataTable.Columns(item.ToString).ColumnName = item.ToString.Trim
ExcelColumnIssue.xaml (7.7 KB)
can you upload your sample application zip folder, so that I can help fixing it
ABCL.zip (47.4 KB)
yeah sure. I am sharing zip folder and error while executing this task and data is extracted on the basis of column name but not able to extract values although if writing same datatable in excel sheet it writing accurately.
Your PO MasterSheet (ERP-MT).xlsx is empty, and you are trying to read a column from it, and column name is having missing quotes “EAN No”
I am reading values in a datatable “DTout” and from that datatable I am using get row item activity on the basis of which writing these values in PO Mastersheet(ERP-MT)
Man your column names are different it is not EAN No in excel it is different, change the column name same in both places it will fine, I just tried it
Let me know if it worked
changed names accordingly still showing same error used with headers and without header both…