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

Alteryx Designer Desktop Discussions

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

Alteryx workflow selects no records on some days. How do I create heading file only?

GeorgeLevesque
6 - Meteoroid

HI,

 

I have a very simple alteryx workflow that queries data and some days it has no records which is valid. I want alteryx to still create an excel file with just headings so that it documents a file was run but no records, just show the column headings.

 

Any help with this is appreciated. If you can provide either the tools or code that I need, that would be very helpful.

 

Thanks, George

3 REPLIES 3
cjaneczko
13 - Pulsar

Are the column headings always the same? If they are you can create a heading template file and union that against the main dataset. If there are records they will show below the union headings. Otherwise you will just get the heading as an output.

gawa
16 - Nebula
16 - Nebula

hi @GeorgeLevesque 

I checked the functionality of Output tool, and I confirmed that Output tool writes only header when no no record.

Now I could not reproduce your issue, or I might miss something. Please tell me more in this regard.

image.png

HomesickSurfer
12 - Quasar

@GeorgeLevesque 

 

Although I like @cjaneczko's proposed solution that should be accepted, uniting a fields/header template and without a single record or more will still produce No Records.  May I suggest that you tie in a text input with your desired fields and additionally add a timestamp.  This stamp will go in Row1 of your output file, or the last row (if you have resulting data).

Capture.PNG

Labels
Top Solution Authors