# Invoke Workflow problem

**URL:** <https://forum.uipath.com/t/invoke-workflow-problem/30593>\
**Category:** Help\
**Tags:** system, activities\
**Created:** [April 27, 2018, 9:20am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593 "2018-04-27T09:20:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petar\_Soce](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@Petar\_Soce](https://forum.uipath.com/u/Petar_Soce)\
**Post date:** [April 27, 2018, 9:20am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/1 "2018-04-27T09:20:20Z")

</div>

Hi

## Nee some help. I am invoking a workflow file and keep getting this error:

## System.ArgumentException: The workbook does not exist at UiPath.Core.Activities.InvokeWorkflowFile.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

I’m not passing it any arguments or anything..I just want it to start. Tried changing names, typing it myself,changing paths..Always the same error

Any idea?

Thank you

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [April 27, 2018, 9:29am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/2 "2018-04-27T09:29:42Z")

</div>

Hi @Petar_Soce,  
Select the workflow file again. Assign the import argument. it will work.

Regards  
Balamurugan

---

<div class="post-metadata">

**Author:** ![Petar\_Soce](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@Petar\_Soce](https://forum.uipath.com/u/Petar_Soce)\
**Post date:** [April 27, 2018, 9:32am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/3 "2018-04-27T09:32:18Z")

</div>

Im not importing anything. I dont need to. The file that I am invoking is reading some excel table and that path is relative…i think it is not executing because of that. The invoked file has its variables stored in some other path…Not all workflows are in the same folder.

Will try/check and let you know

If i’m invoking file, that file has to be in the same folder as the Main workflow??

---

<div class="post-metadata">

**Author:** ![anjalimishra](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@anjalimishra](https://forum.uipath.com/u/anjalimishra)\
**Post date:** [April 27, 2018, 9:37am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/4 "2018-04-27T09:37:15Z")

</div>

@Petar_Soce,  
Can you please share your workflow?

---

<div class="post-metadata">

**Author:** ![Petar\_Soce](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@Petar\_Soce](https://forum.uipath.com/u/Petar_Soce)\
**Post date:** [April 27, 2018, 9:39am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/5 "2018-04-27T09:39:38Z")

</div>

I’m sorry. It is confidental data

---

<div class="post-metadata">

**Author:** ![Petar\_Soce](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@Petar\_Soce](https://forum.uipath.com/u/Petar_Soce)\
**Post date:** [April 27, 2018, 9:41am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/6 "2018-04-27T09:41:54Z")

</div>

So…I just went through the debugger. It opens the invoked workflow. The invoked workflow is reading excel table with relative path and Robot does not take the relative path of a an invoked file. It takes the path from Main workflov(parent) and since it is not in the same folder it gives me an error. So stupid.

---

<div class="post-metadata">

**Author:** ![Petar\_Soce](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@Petar\_Soce](https://forum.uipath.com/u/Petar_Soce)\
**Post date:** [April 27, 2018, 12:49pm UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/7 "2018-04-27T12:49:04Z")

</div>

This post helped me solve my problem

> [@Relative path error](https://forum.uipath.com/t/relative-path-error/310/2):
>
> Hi, This is usual behaviour - a process has one entry for working directory, for UiPath that’s supplied from the entry (starting) workflow. You can change it with a [Directory.SetCurrentDirectory](https://msdn.microsoft.com/en-us/library/system.io.directory.setcurrentdirectory(v=vs.110).aspx) call. I’d actually recommend to restructure your folders and do a tree hierarchy, f.e.: Root (contains Main.xaml and other high level workflows) Root/Folder1 (contains Folder1 specific workflows) Root/Folder2 (contains Folder2 specific workflows) That way you can always use a path relative to the e…

Basicly everytime I invoke a workflow I need to assign a path to that workflow.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [October 29, 2018, 9:21am UTC](https://forum.uipath.com/t/invoke-workflow-problem/30593/8 "2018-10-29T09:21:04Z")

</div>

Closed on October 29, 2018, 9:21am UTC


