Trying to run a workflow and getting the following compilation error:
21.10.3+Branch.master.Sha.8291b2799a85589c5b075e0d1f69016fc83eec97
Compilation failures occurred:
Unable to load assembly 'UiPath.Mail'. Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)
Complete results are contained in the Data property of this exception. Please correct the errors in the source and retry the Load.
RemoteException wrapping System.InvalidOperationException: Compilation failures occurred:
Unable to load assembly 'UiPath.Mail'. Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)
Complete results are contained in the Data property of this exception. Please correct the errors in the source and retry the Load.
at System.Activities.XamlIntegration.ActivityXamlServices.Compile(IDynamicActivity dynamicActivity, LocationReferenceEnvironment environment)
at System.Activities.XamlIntegration.ActivityXamlServices.Load(XamlReader xamlReader, ActivityXamlServicesSettings settings)
at System.Activities.XamlIntegration.ActivityXamlServices.Load(XmlReader xmlReader, ActivityXamlServicesSettings settings)
at System.Activities.XamlIntegration.ActivityXamlServices.Load(Stream stream, ActivityXamlServicesSettings settings)
at UiPath.Executor.WorkflowLoader.LoadWorkflow(String xamlPath, String compiledWorkflowAssemblyName)
at UiPath.Executor.WorkflowRuntime.Load(String workflowFile)
at UiPath.Executor.RobotRunner.InitWorkflowApplication()
at UiPath.Executor.RobotRunner.<ExecuteJob>d__88.MoveNext()
I understand what âCannot implicitly convert type âobjectâ to âstringââ means, but Iâve gone through the workflow and there are no casting errors that I can see, nor does the editor give any warnings before compilation. The first part though, âUnable to load assembly âUiPath.Mailââ, Iâve no idea what it means, as Iâm not using any mailing activities at all, nor does the workflow have any refrences to UiPath.Mail.
I had this happen to a different workflow as well (one which used to work btw, and got this error out of nowhere). I somehow managed to fix it by opening the file in a text editor, going through the xml and changing some instances of x:Object to x:String where I thought it made sense. Here though, I havenât found any issues in the xml.
The error message doesnât point out which activity is causing the error. I feel like this wouldâve been helpful. As it is, I canât figure out where in the workflow there could possibly be a casting error.
Here is the workflow file:
3. GetClientPEC.xaml (25.3 KB)
If anyone can find the error Iâd be very grateful.