Issue:
I get the System.ArgumentException: The workbook does not exist
runtime error
Background
I have a custom activity (it works on my local machine before deploying it). This activity has an in_arguement (type String) that asks the user to specify the location of an excel file to be read in. See below for the screenshot of the custom activity:
I’m using this custom activity as a dependency in another process. Whenever I provide value to the in_arguement (the location where to read the excel file), I get The workbook does not exist error message. Below is where I’m using the custom activity in another workflow and providing value to the in_arg.
Also see detail of the error log below.
22.10.5+Branch.support-v22.10.Sha.79bc7c61a909d990afd07620b3005b3a35eb1f1b
Source: formatAndPostCLineTrans (Read Patient And Unit Numbers)
Message: The workbook does not exist
Exception Type: System.ArgumentException
System.ArgumentException: The workbook does not exist at UiPath.Excel.WorkbookFile…ctor(String workbookPath, String password, Boolean createNew)
at UiPath.Excel.Activities.WorkbookActivity1.ConstructWorkbook(String path, String password, Boolean createNew) at UiPath.Excel.Activities.WorkbookActivity
1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)