Hi,
I run a workflow which outputs data into two tabs in excel(Inspection and Fail). Is there a way in Alteryx to create new output file with those two tabs for every run? Thank you in advance
Solved! Go to Solution.
Hi @aparna0208
Yes, but will require that you create a field that includes the complete output file path and sheet name. You would then enable the option in the output tool to "Take File/Table Name From Field" option at the bottom of the tools config.
In the attached example, I'm creating an output file path with the file name including a date/time stamp. Reason why you have to use the "Change Entire File Path" option is because you're needing to change the file name. The other options available would only impact the table (or sheet name for Excel) which wouldn't do you any good.
Hope this helps!
Jimmy
@jrgo Thanks for the inputs. I'm getting an error as "Error opening file". Not sure if the error is because of the path mismatch. I'm not sure if I'm missing anything here
I'm guessing that you ran this on a new workflow (never saved). The way the Formula tool was set up is that the file path is relative to where the workflow is saved in, but if the if working on a never saved workflow, it defaults to the bin directory which is usually protected.
Either save the workflow first then run or update that formula tool adding in a directory path (illustrated below)
Remember that the option selected in the output tool is COMPLETELY replacing whatever File Path the output tool is configured with.
Awesome, it worked:) I saved the workflow and then ran it and no issues. Thank you so much for your help on this @jrgo
Thanks @jrgo .Just to add a note for everyone else to use DATETIMESTART() like you have in your screen shot. I was using DATETIMENOW() initially and would have tabs broken out into different output files because they ran couple of seconds apart due to block until done tool.