Alteryx Designer Desktop Discussions

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

How many input files are in a script?

ShaneH
7 - Meteor

Hello Community,

I have a script with well over 100 input files and would like to know if there a way to know exactly how many are being used for the script. Is there some place to find this metadata about the script? Maybe something that tells you how many of each tool is being used in a script?

 

Thanks,

Shane

6 REPLIES 6
mceleavey
17 - Castor
17 - Castor

Hi @ShaneH ,

 

What script are you talking about? Why are you using a script? 

Can you share with us your workflow with an example of what you're trying to do?

 

M.



Bulien

ShaneH
7 - Meteor

Thanks M.!

 

Maybe "script" is the wrong term. I'm trying to count the number of input files that I have in a workflow without having to open all of the containers that I have them organized in.

 

Bonus question: Can you differentiate what you call a "script" vs a "workflow" I tend to use those terms interchangeably. 

 

Thanks,

Shane

mceleavey
17 - Castor
17 - Castor

@ShaneH ,

 

no problem. A script would be something like SQL, so we would literally be pulling out the filenames from the text. A workflow is built in Alteryx.

 

In order to answer your question we would need to see how you're loading the files in. 

If you're loading them in using an input tool with a wildcard, then configure the input tool to pull in the filename:

 

mceleavey_0-1639409445402.png

 

Then put this field into a sum tool and use count distinct. This will tell you how many files there are.

 

Hope this helps,

 

M

 



Bulien

OllieClarke
15 - Aurora
15 - Aurora

@ShaneH if you're wondering how many input data tools you have (rather than the number of files to which they connect), then you can search for all input data tools by pressing ctrl+f and then finding 'Input Data' in the tool name.

OllieClarke_0-1639409982091.png

 

ShaneH
7 - Meteor

I can see where that could be a handy setting to do in the beginning of a build for the purpose of counting the file names (or doing other things with them). However, this would require that I open every container and touch every Input Tool to change them since I'm months into the build.

 

I can look in Options/Advanced Options/Workflow Dependencies and see a list of all of the Inputs and Outputs, but I can't get a summary number that I know of. I know I could add them up myself, but I'm trying to find a systematic way of determining this.

ShaneH_0-1639409905688.png

Here is the layout (maybe the visual will help). I can't share the workflow because of privacy.

ShaneH_1-1639410598031.png

Within each container that connects to the Union, there are additional containers with all of the individual data streams (not sure if this is the proper term or not - feel free to school me here) for that month.

ShaneH_2-1639410676991.png

 

Thoughts?

ShaneH
7 - Meteor

@OllieClarke this is helpful. I can get the number this way. Not exactly what I was hoping for, but it works. 🙂 I thought there might be some sort of MetaData place where I could get this information about the workflow. Thanks for the idea!

ShaneH_0-1639412398113.png

 

Labels