Test runs in studio, but "workflow cannot be found" from robot

Hello all,

I programmed a long test including several “invoke workflow file” in Studio 2024.10.15 LTS Enterprise where it runs without problems. Now trying to run it from Orchestrator as remote process it fails saying: “workflow cannot be found. Make sure that it is part of the project.” If I make a complete new directory, put a workflow inside and invoke this in my test it runs also. But the existing directories can’t be found. It’s hundreds of directories so I just can’t redo all these directories from scratch.

I read something about “Windows legacy project format” problems but I just started this last year (2024) so it shouldn’t be legacy format?’

Thanks in advance.
Karsten

Hi @karsten.haak

if you open you project.json file, it would tell you which framework your project is based on?

Also, when you open your project in studio, it would show if its windows based project like below:

Regarding your error, could you please confirm how are publishing your project to orchestrator? and what is the structure of your project? can you show screenshot from your project panel?

Hi @sonaliaggarwal47

I publish my project by using the publish button in studio (is there any other way?).

Here the screenshot from my project panel:


All packages have the latest version, because I needed to update them for being able to publish.

Before update them the tests would compile and run in Studio without problem, but when I tried to publish them the compiler said that the workflows could not be found - but studio compiled them without error. Somewhere I found the hint to update the dependencies, and then I could publish it, but now the robot from Orchestrator complains about the same.

Hi @karsten.haak

You are publishing right way only.

Are you running in the same machine from orchestrator or different one?

If different one, could you please remove your package from below location so when you hit run from orchestrator again, all packages are downloaded again.

C:/users/{username}/.nuget/packages

Hi @sonaliaggarwal47

Our orchestrator runs on different machine (the UiPath cloud).

So I removed the package folder and it downloaded all new, but still the same error occurs: robot says workflow folders cannot be found while studio runs them without a problem.

@karsten.haak

You need to remove package from machine where you are running the process on from orchestrator.

The machine which is added in your folder from where you are running the process.

Hi @sonaliaggarwal47

I could resolve the problem meanwhile: my directories had entry points set as “Ignore from publish”, so they were invisible for the robot. I had not worked before with Orchestrator, so the publishing process is new for me. I also had not really understood the difference between “Workflow” and “test case”. Thanks again for your efforts!

1 Like

Hi @karsten.haak

Glad to hear that.

Yes, when ignore from publish is set, test cases or workflows are not published.

In simple terms - Workflow is a xaml file that is built for RPA use, whereas test case is a file that is built on top of that workflow file to test it.

Hope this helps.

Now, that your issue is resolved, kindly mark your post as solution so this topic can be closed.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.