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.

Dynamic input fails where file size is zero

ChrisDL
6 - Meteoroid

Hi everyone

 

My workflow has a list of file locations and I am using a dynamic input tool to input those files and extract some data - a few of the files on the list have a size of 0kb (probably due to a failed deletion process in the application that created them) but I do not know which so the workflow fails with a no fields found error when it finds one.

 

The files in question are .dta files and I am importing them as csv files with no delimiters (I only need to capture the first few hundred characters)

 

Is there a way to make Alteryx skip the files with a zero size without using a directory tool to scan the folders which will take far too long?

1 REPLY 1
mceleavey
17 - Castor
17 - Castor

Hi @ChrisDL ,

 

Use the Directory tool to read the files in those locations. In the Directory tool you will see a column called "Size":

 

mceleavey_0-1644409270697.png

 

Apply a filter to where Size>1kb (for example). This will remove those files that don't meet the required minimum size. This will be the list of files you dynamically load in the Dynamic Input tool.

 

Hope this helps,

 

M.



Bulien

Labels
Top Solution Authors