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.
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
Solved! Go to Solution.
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
From what I can see, it's most likely the last point causing the error.
Hi!
Thank you for your reply.
V
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
@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)?
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.
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.
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:
I also attached a picture of where you have to set the credentials below!
This worked perfectly for my workflow, so I hope it will work for others too.
V
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.
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
6 |