Hello, I have a workflow where I have to generate report daily and the file name should be the date of execution. I have used date and time configuration node to get the execution date and string manipulation node to prepare the path. Here is my code for the string manipulation:
string(“C://Users//nikhilci//Documents//Reports//” + “TransactionData” + $${Sdate-input}$$ + “.xlsx”)
This statement works fine. When I use the string to path variable node, it gets converted into ‘FSLocationVariableType’ data type. For some reason, excel writer does not recognize this as a path due to which I’m not able to write it into the required excel sheet. Weirdly, this same ‘FSLocationVariableType’ works fine when I am using the excel reader node.
@nikhil_benny maybe you can provide an example and a logfile about what is going on. BTW the syntax you posted above will not work since the quotation marks are not correct.
Hello, I was using 5.2.5 version. I updated it to 5.2.6 and it works now. I’m not sure exactly what the reason is. I was trying to configure the file with date to an existing workflow. Maybe you have to replace the existing excel reader node with a new one and configure it. Maybe this is a bug?
I think there may be an obscure bug here somewhere. I experimented to try to replicate what you were doing and created a string variable which I then converted to a path. When I first did this, the Excel reader node could not see the path variable even though the nodes were fully executed up to that point, so it should have been visible.
I then created a second variable and executed again, and this time excel reader could now see both of them. I tried to repeat this but I couldn’t reproduce it. If I find time, I may have a further investigation while videoing the screen to see if I can reproduce and document.
Certainly there is something going on here that doesn’t feel quite right, but clearly whatever it is does not always show itself, and possibly resolves itself through other interactions so had gone largely unnoticed. I think I was using KNIME 5.3.3.