We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

No Output File if data not found ( without any error )

fikrizahari
8 - Asteroid

Hi,

Greetings !

I have multiple workflows and will have various output files.
However, I do not want any output if there's no data ( table only contain header name ) :

fikrizahari_0-1680503303904.png


There is a discussion on the community as below :
Solved: Don't Output if No Records - Alteryx Community

However, the steps given will show error ( red color ) when we run it.
Is there any other possible way to ignore blank data ?

Thank you in advance !

3 REPLIES 3
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

@fikrizahari ,

What is the format of your output files? (.xlsx, .csv, ...)

Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @fikrizahari ,

 

Assuming it's a csv format, I created a potential solution.

(I know this is not so elegant. There may be better ways to prepare the empty data...)

 

Input 

In this case, I want to output a file for each 10's range.

Yoshiro_Fujimori_1-1680509945874.png

Expected File names 

... but the expected File names are from 10's to 70's. So 30's, 60's and 70's should output no record.

Yoshiro_Fujimori_2-1680510002299.png

Workflow

Yoshiro_Fujimori_0-1680509916034.png

Output file with no data ("30's.csv")

Yoshiro_Fujimori_1-1680510773752.png

 

Messages

Yoshiro_Fujimori_3-1680510396830.png

 

I hope this may be of some help.

Good luck.

fikrizahari
8 - Asteroid

Hi @Yoshiro_Fujimori ,

Thank you for your suggestion.
I do not mind any output file type.

For your answer, the result will show all column with value under similar table.
I would like to have various output - workbooks, but ignoring non value data.

I think I got it already, I will just share what I found out, during my development.
I have added a formula tool with new 'FilePath' column, and the setting for output tool as below :

fikrizahari_1-1680511755298.png

 



fikrizahari_0-1680511594873.png


Please let me know if you have any comment / suggestion.
Thank you so much !

Labels
Top Solution Authors