Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Split output into multiple Excel files to different folders and format the output SOLVED

YeahMan
8 - Asteroid

Hi,

I'm posting this since I've found the solution and it could come in handy for someone else.

 

I was trying to split my output into multiple Excel and save to multiple different directories/folders based on fields in my data. My data looks like:

 

YeahMan_1-1608039075075.png

 

I would like each Program to be its own Excel file AND I would like to save the output to a folder that matches the School. So all the data related to 'Acting for Film and Television - P0198' would be written to

...\Schools\Media\Programs\Acting for Film and Television - P0198.xlsx.

 

I've successfully created the files and dumped them in the correct folders by creating a column named FileNameAndPath:

 

"C:\Temp\Schools\" + [School] + "\Programs\" + [Program] + ".xlsx|||DATA"

 

then used this in the 'Field Containing File Name...' parameter in the Output Data tool:

YeahMan_2-1608039407448.png

This works fine, but because I need to format the output and I don't want to have to 'touch' the resulting 137 Excel files, I decided to try the Table and Render tools instead of the Data Output tool. The output looks much nicer, but unfortunately, I lost the ability to change the destination folders on the fly. E.g., for the Table I have:

 

YeahMan_0-1608043280938.png

 

And for the Render I have:

YeahMan_3-1608039936763.png

Alteryx Designer really doesn't like this and throws an error:

 

Error: Designer x64: The Designer x64 reported: InboundNamedPipe GetOverlappedResult: The pipe has been ended.

 

YeahMan_4-1608040204638.png

 

The solution is to remove the explicit sheet name from the PathAndFileName column and instead use:

 

"C:\Temp\Schools\" + [School] + "\Programs\" + [Program] + ".xlsx"

 

And it works like a charm!

 

If anyone figures out how to rename the sheets using Table/Render tools, please let me know. Thanks to both @messi007 & @JosephSerpis for their help.

--sue

2 REPLIES 2

Hi @YeahMan 

 

You can specify the tab name using the layout tool. Please check the attached and let me know if it helps. Cheers!

 

 

YeahMan
8 - Asteroid

Perfect! Thanks.

Labels
Top Solution Authors