This is possibly more of a KNIME Analytics Platform issue, but it’s only a problem when I deploy my workflow to our server as I’m trying to use the File Download node to serve an XLSX file to our users.
When I configure the node as a normal part of the workflow, all seems well. However, as soon as I encapsulate it into a wrapped metanode, I am unable to select any of my flow variables so when the workflow runs, I am just served with an empty file.
However my flow variables should all be included for selection:
The XLSX file is definitely getting written to the server, whether I use the Create Temp Dir node or not so I assume it’s flow variables that are the issue here. I tried following the same steps as in this topic but without success. What am I doing wrong?
Would it be possible to share an example workflow so then I can test it?
I build a workflow that tests what you are trying to do, both locally and on the Server, and everything seems to work.
Please find the workflow attached.
Thanks.
I think there was something miss-configuration in the Create Temp Dir node.
Could you please check with the attached workflow?
I tested it and I was able to download the Excel file from WebPortal.
Brilliant! Thanks so much @Vincenzo, I’ve got it working now.
In case anyone else runs into the same issue, the key is to set an additional path variable in the Create Temp Dir node as below, and use this as the File Path Variable in the File Download node:
(Rookie mistake I’d fixed earlier: I needed to re-execute the workflow to refresh the File Path Variable dropdown list in the File Download node, but the fix for the empty file issue is the additional path variable as above.)