It seems like you’re encountering an issue with the “For Each Excel Row” activity in UiPath, where the “CurrentRow” variable is not recognized. This could be due to various reasons, such as incorrect variable scope or data type mismatch
Please use the expression that returns the value in the watch panel, Expression 2 is what is being used inside the if condition, I highly doubt that there might be an issue in expression only. Do check and let me know if it works. Happy to assist further if required.
Make sure your column name doesn’t contain any extra spaces and try printing it in Message Box before If condition the same condition. Try using .Trim() after .ToString().
As you can see, i put a logg message, and in the ouput panel, there is a blank line, and it will be blank, for this row, that is, the first row, as it is blank, but it might have some value.
What I mean to say, ‘Comments’ column might be filled or blank, i want to check if it equals “OAB Comp to be updated”, only then want to perform the subsequent checks.
PS: Also sorry, cant share the excel file, as it is confidential.
while comparing it is best practice to convert it into lower or upper case.
Instead of giving direct value convert both to either upper or lower case check in immediate panel and proceed.