Free Trial

Alteryx Designer Desktop Discussions

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

Schedule workflow on Company Gallery with shared folder file input

Verenala4
8 - Asteroid

So my question might be very specific but I thought it was worth asking.

 

I have a workflow that takes its input from a variety of excel files with multiple files that are hosted on the shared drive folder of my company. The actual workflow works perfectly fine.

 

I would now like to schedule it to run once a day (on my company's Gallery) but when I tried to do this, it gives me an error. This is my first time trying to schedule a workflow.

 

It says: "Invalid Directory "Path...\Sample\UserForm\*.xlsm": The system cannot find the path specified. (3) (Tool Id: 1)"

 

The start of the workflow (see below) is set up with the directory and dynamic input tools.

Capture.PNG

 

 

 

 

 

 

 

 

Where do the input files have to be stored for this scheduled workflow to work and is there a way to have them on a shared drive?

 

I hope this makes sense.

 

Thank you,

V

8 REPLIES 8
MichalM
Alteryx Alumni (Retired)

Hi @Verenala4 

 

There are could of things to consider here. When a workflow is scheduled on the Gallery, you can think of it as sharing a copy of the workflow with one of your colleagues

 

  • Can they access the shared drive (is there connectivity between the server environment and the shared drive)?
  • Do they have access to the shared drive (does the user who executes the workflow on the server have access)?
  • Can the user resolve the path to the directory - in this scenario I'd recommend using a UNC path to the folder location which can be resolved by any user 

 

From what I can see, it's most likely the last point causing the error. 

Verenala4
8 - Asteroid

Hi!

 

Thank you for your reply.

 

  • Everyone on my team has access to the shared drive
  • I am not sure if there is connectivity between the server environment and the shared drive (I just used the pre set gallery on my work laptop)
  • I am not sure that a "UNC path" is, could you elaborate more?

V

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

When you MAP a NETWORK DRIVE in windows, you assign a drive letter to the \\MyNetworkName.  If you go to OPTIONS: Advanced Options: Workflow dependencies, you can modify all input/outputs that reference E:\ (an example) to \\MyNetworkPath....

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Verenala4
8 - Asteroid

@MarqueeCrew Thank you for your reply. So when doing this, I succeeded to make it work (it ran without throwing an error when scheduled on the Gallery).

 

However, it saved an Excel with the output on the Gallery (I can see it in the browser) rather than updating the output file on the shared drive. Any idea why it is doing this (and how I can change this)?

MichalM
Alteryx Alumni (Retired)

@Verenala4 

 

The same way you defined the input as a file locate on the shared drive using the UNC path, you can define the output to be written into that location using the same UNC path.

Verenala4
8 - Asteroid

@MichalM 

 

I still get an error message (even after 'change all paths to UNC') saying that "cannot access the folder" and "file not found".

 

I am wondering if it is maybe my shared folder (meaning that the Gallery can't access it for some reason but I don't know how to check that). This seems like a more complicated issue than I thought. I wish it would be easier to schedule a workflow but at this point I can't find any way around my errors. I found a lot of older posts on the community but none of the solutions worked and most of them were unanswered.

Verenala4
8 - Asteroid

I finally found a way to make it work. I thought I would post it here in case it helps anyone else.

 

Since it is my company's shared folder that is not public (ie you need to have access to it through your credentials), I had to change the workflow options before saving it to the Gallery.\

 

Here are the steps I followed:

  1. Go to File > Save As > 'My Company's Gallery'
  2. A small window pops up that says "Save Workflow"
    • Enter a Workflow Name
    • Details (optional)
    • Click on the 'Workflow Options' dropdown & select "Set workflow credentials"
      1. The default option is "User is not required to specify credentials" which won't work if you are using a shared folder location (as access is usually granted for individual users)
      2. Choose either the 2nd or 3rd option, depending on whether you want to preset credentials that have to be put in or make the user put in their own credentials (if you choose the 2nd option, you can easily keep track on who ran the workflow on the Gallery)
  3. Click "Save" (and wait until the screen says complete)
  4. Click on "View in Browser" (a new tab in your browser will open)
  5. Click "Schedule" (in browser) and set a date/time/frequency & click okay

I also attached a picture of where you have to set the credentials below!Untitled.png

 

This worked perfectly for my workflow, so I hope it will work for others too.

 

V

 

 

MichalM
Alteryx Alumni (Retired)

Thanks for sharing @Verenala4. Like I mentioned in my original response, in most instances the workflow on the server will get executed by the 'default' server user which would require access to all the shared locations your workflow accesses.

 

In your case, the server is configured in a way that allows the user publishing the workflow to define the credentials used to execute it, which in your case means that it will run as your user. Hence the default server user doesn't require access to the shared locations as the process will use your credentials to authenticate.

 

 

Labels
Top Solution Authors