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

Alteryx Directory Tool Grabbing Files That Start With "~$"?

shaheer
8 - Asteroid

Hello. I am using the directory tool to grab all files that end with .xlsx in a folder. Here is what it looks like.

shaheer_0-1665680489055.png

So in this folder there are multiple files, each with almost the same name except they are numbered differently at the start. For example,

1. File Worker January.xlsx

2. File Worker February.xlsx

...

12. File Worker December.xlsx

 

When I use the sort tool

shaheer_1-1665680646590.png

These files that are NOT in the folder end up being included:

shaheer_2-1665680726613.png

What does the ~$ mean? How can I remove them? My goal is to retrieve the most recent file added by number (so in this case 12) and then use that as my dynamic input file for my flow. I cannot do this as it gets the ~$12 file which cannot be read. 

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @shaheer 

 

I have this problem here as well, just filter out the files that have this '~$'

 

Felipe_Ribeir0_2-1665682262419.png

 

'

Felipe_Ribeir0_0-1665682204850.png

 

Here you can see some explanation about why these files are being shown for you.

What’s that ~ squiggly mark in front of my filenames? :: Accurate Die Design Software

 

If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

 

 

 

gautiergodard
13 - Pulsar

@shaheer strange, are any of the file open on your desktop of the desktop on a colleague?

 

Can you just filter these files out using a filter tool? 

 

!Contains([FileName],"~$")

 

Garabujo7
Alteryx
Alteryx

Hello @shaheer ,

 

I've tried to replicate the issue you have, however for me works fine if I read *.xlsx just brings me the right files in the current folder.

If the files are in the same folder, will bring it as well  because it have the .xlsx extention.

 

By the way, the excel files that starts with ~$ sign are almost certainly a temporary file created by Excel when you open a workbook.

 

Gabriel

 

 

Labels
Top Solution Authors