This is the same project, but a different part of my workflows. I am getting an error that the column name does not belong to the table. I am bringing in the Data Table and the index column as arguments. (in_firstDataTable, and in_firstDTIndexColumn, respectively.) I am trying to show in these log messages that if i get the column name by index, it matches the argument that i am asking it to retrieve from the table.
Here are screenshots of my code:
The specified index column is the 3rd column in the table (2nd index). As you can see in the first log message box. Then I am writing the argument value in the second message. Then the third message results in this:
Copied lines of results (to show there are no extra spaces).
Line 1: Emp No
Line 2: Emp No
Line 3: Exception Occured during Process Column âEmp Noâ does not belong to table . Source Invoke addDataForUpdatedReport workflow: Log message
To add to the confusion: iâve now used the index of the data table to set the value of the in_firstDTIndexColumn argument - and then tried to retrieve it from the table again and it says it doesnât exist.
The screenshot of the last log message doesnât show the entire expression, but I think what youâre trying to do is youâre trying to use the âEmp Noâ as the column name (stored in the argument âin_firstDTIndexColumnâ). But note that âEmp Noâ is NOT the column name. Itâs the data value at Row index 0 column index 2, and youâre trying to use THAT as your column name.
Let me know if youâre still not able to understand this.