I am facing a problem where I keep getting return “” from a variable even if the the data manage to be captured properly in the data table.
I use read range activity (excel) to save them in lets say DT9.
Then I would use “For each row” in DT9 with Item name = SCRRow. Inside, I assign variable as below:
The purpose of this variable is to check if column “Type” or “Manufacturer” is not empty or “Missing” or “N/A”, if it has any value apart from the previous condition, it will return “TRUE” else it will return “”
I just ran the code and your SCR_EXIST variable is working fine, since you are using for each row the the vaue of of SCR_EXIST will be true only for 2 rows and rest it will be null that is “”
so the value of SCR_EXIST will be “” after the loop has ran
Check the log for each row
My final output for the variable are if the column “Type” or “Manufacturer” contains string value that are not Missing, N/A, empty spacess, null. The variable SCR_EXIST should be output as TRUE else ignore.
Note:Since there were empty rows, the “Type” and “Manufacturer” are also “Null” or “Empty”. This is the reason your SCR_EXIST would return “” from these 3 rows.
If this solves your issue, Do mark it as a Solution.
Happy Automation
@V_Roboto_V I think you explain it well, I did not know that empty duplicate rows would cause this issue. I thought when the variable I write in for each row would filter this, turns out the data table needs to be cleaned in advance.
Thank you so much, it works now, the for each is working as intended.