Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Output as Append to Existing when the headers in Excel begin on 2nd row

bleu
8 - Asteroid

I'm outputing data from a workflow into Excel. The first row in Excel is one long merged row over several columns so the headers begin on the 2nd row. I'm using Append to Existing since I'll continue to add data. The error message is stating that the incoming field name cannot be appended because Alteryx is looking at the first row and it doesn't exist. I've tried creating a dummy row but that won't help. The header names must start at the second row. Any input would be appreciated.

 

bleu_0-1610119878719.png

6 REPLIES 6
Ladarthure
14 - Magnetar
14 - Magnetar

hi @bleu,

 

you can also on the input tool choose to skip the n first lines, allowing you to skip this first line, is this what you meant?

bleu
8 - Asteroid

Not quite. I have a lot of reports that I constantly have to do that. When I bring them as an input to Alteryx I have to specifiy which line to start on. But this is an ouput. I want to specifiy in the output where I want the headers to start.

Ladarthure
14 - Magnetar
14 - Magnetar

in the output tool, you can select a specific range just after selecting the xlsx option. (see screenshot below). If you don't know the exact range, you can set a bigger range that what is needed.

 

20210108_AlteryxGui_Pvfay.png

bleu
8 - Asteroid

I should have also mentioned that I'm using a file path for these outputs. I've got a formula that creates a file path and based on the month, year etc. the outputs automatically go into their appropriate folders. So it won't just be one excel file in a permanent location. It will be different excel files (by month/year etc) that have the same Excel format in different locations.

 

Can I still do this if I'm changing the file paths and how?

 

 

bleu_1-1610124109277.png

 

 

 

 

Ladarthure
14 - Magnetar
14 - Magnetar

Yes sure thing, you can add something like this :

 

filename.xlsx|||Sheet1$A2:ZZ9999999

 

with $A2:ZZ9999999 as the range in your formula where you define the path and it works perfectly !

 

bleu
8 - Asteroid

Ladarthur it worked!

Thanks so much, you rock!

🙂

Labels