Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

File browse + directory tool in gallery - does not return correct file attributes

Srlo
5 - Atom

Hi community, 

 

I'm using file browse interface as input for directory tool. All workflow dependencies as "All UNC".

Formula in action tool for directory tool :  FileGetDir([#1])

 

However, directory tool is unable to get the actual file attributes (e.g. file timestamp) instead, it returns the timestamp when the workflow is run from the server.

 

This works perfectly in desktop app in which it actually returns the correct file timestamp, but not the case when run in server.

 

I don't want to use text box, as workflow has a lot of input (located in different folders/subfolders); and file browse is the most "user-friendly" approach.

It's also not possible to use "static" directory path, as input files are located in different folders/subfolders, and can potentially be of the same filenames (but different timestamps)

 

Is there a way to make file browse+directory tool work in server?

 

 

SS_workflow.JPG

 

Thanks in advance!

1 REPLY 1
jrgo
14 - Magnetar

The File Input interface tool works differently when the app is ran on Gallery vs. locally. On Gallery, it serves as a file upload which stores the file in the servers DB (Mongo) and then stages it in the workspace directory your Alteryx Server was configured to use when the app is ready to run. It will NOT reflect the original path for where the file was uploaded from. That will only work when running the app locally on your machine.