Relative File Paths and Gallery
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello, I have a workflow in our team's shared repository that is structured in the following fashion. The workflow file itself is in the "workflow" folder, and it accesses macros saved in a subdirectory "workflow\macros" via the "macros\" relative path (not shown).
The workflow saves files to the "file_lists" directory via the relative path "..\file_lists"
If I attempt to save this workflow in our private Gallery and run it, I get the below message.
This makes sense, since I assume the Gallery is copying the workflow file to the Staging directory for execution, and there is no such "file_list" subdirectory there the same way that it exists in our repository. (And I imagine if we could manually create one in that location on the server, it wouldn't be guaranteed to persist for all time.)
Is there a way to get the Gallery to package directory structures, similar to packaged inputs / outputs / other file references during save? Without this it doesn't appear we can schedule this workflow using a Gallery implementation without changing all the relative file paths to be the same directory as the workflow, which we don't want to have to do.
- Labels:
- Best Practices
- Common Use Cases
- Gallery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Scott_Snowman ,
One thing I've noticed is that you are using D:\path... to point to the file. Perhaps your server is not configured to understand the same letter as the same point you machine understands. Try to point to your file using \\MACHINE\SHARING\...
Sales Engineer - LATAM -
Alteryx, Inc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @AZuc , thanks for the response.
I am not using D:\path to point to the file, either on my machine or on the server. All file paths in the workflow are relative.
The workflow uses the relative path ..\file_lists in its output tools.
On the server this expands to the D:\ProgramData\Alteryx\Service\Staging path as indicated by the screenshot. On my machine it expands to a folder on C:\ representing the repository in Github.
So the question is, how can the Server environment be configured to match the workflow environment, expecting a file_lists directory to exist at the same level of a directory containing the workflow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Understood @Scott_Snowman ,
I see no way to do any configuration on the server side, but you can think about using the constants [Engine.WorkflowDirectory] and
[Engine.WorkflowFileName] (the last one includes the staging folder where the package is uncompressed). If you are creating that .bat file inside your workflow, you will be able to create inside the staging folder or any relative path to it. No folder is gonna be automatically created when the package is uncompressed.
See if it helps you and feel free to ask about more details.
Sales Engineer - LATAM -
Alteryx, Inc.

