Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

Automatic add date in filename

Drexler
6 - Meteoroid

Hi All,

 

I am new to Alteryx. I was able to save the file as PDF using render tool but no way to add the run date in filename and I added the Formula tool before the render tool but it did not work. No error is showing.

20230606_013333.jpg

7 REPLIES 7
DataNath
17 - Castor
17 - Castor

@Drexler the Render tool is a little bit more fiddly to pull information from the data itself. In this example I have a field like you:

 

DataNath_0-1685987893176.png

 

Then in my actual reporting element, I need to Group by this (also unticking the field so it doesn't get output):

 

DataNath_1-1685987923147.png

 

Now in the Render itself, in order to pull from fields we need to ensure we have Choose a Specific Output File selected. We then just give a dummy FileName (1.pdf in my case). Then, we select to Group Data Into Separate Reports, selecting our Path field and Replacing Filename With Group:

 

DataNath_3-1685988015865.png

 

Upon running that the dynamic path/file name that we set up in the Formula tool pulls through:

 

DataNath_4-1685988087424.png

 

Example workflow attached for you to look over.

Drexler
6 - Meteoroid

Thank you for responding to my inquiry. I tried to follow the instructions and I got an error in render: Unable to write output file. The system can't find the path specified.

 

The path preview is showing correct. Not sure what I missed.

Drexler
6 - Meteoroid

Please see attach

DataNath
17 - Castor
17 - Castor

@Drexler it looks like you’re constructing the entire path in your Formula, so you may want to try the other drop-down in the Render configuration to replace the entire path instead of just the filename. Failing that, are you perhaps able to show your Formula expression setup or a bit more of the error message? I appreciate you’re blocking it out due to privacy concerns but within that setup is the most likely the root cause here making it hard to diagnose.

Drexler
6 - Meteoroid

Sure, please see attached formula and error messages. I also changed the render configuration to Replacing Entire Path With Group but it led me to another error and alteryx has stopped working.

DataNath
17 - Castor
17 - Castor

Hey @Drexler, in your expression, try adding the file extension I.e. ‘.pdf’ to the end - after your date. Then try replacing filename with the entire path again.

Drexler
6 - Meteoroid

Hi again, I was able to pull the excel and pdf successfull, however, the pdf file did not save in the same folder. The excel saved correctly.

20230614_020328.jpg

Labels
Top Solution Authors