Compilation failures occurred:

When Run Robot then getting error

Compilation failures occurred:

Unable to load assembly 'UiPath.Mail.Activities.Design'.	The type or namespace name 'Apollo' does not exist in the namespace 'UiPath.UIAutomationNext.Activities.Design.Themes' (are you missing an assembly reference?)	The type or namespace name 'Apollo' does not exist in the namespace 'UiPath.UIAutomationNext.Activities.Design.Themes' (are you missing an assembly reference?)

Complete results are contained in the Data property of this exception. Please correct the errors in the source and retry the Load.

System.InvalidOperationException: Compilation failures occurred:

Unable to load assembly 'UiPath.Mail.Activities.Design'.	The type or namespace name 'Apollo' does not exist in the namespace 'UiPath.UIAutomationNext.Activities.Design.Themes' (are you missing an assembly reference?)	The type or namespace name 'Apollo' does not exist in the namespace 'UiPath.UIAutomationNext.Activities.Design.Themes' (are you missing an assembly reference?)

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.d__114.MoveNext()

Hello @Ankit_shukla

  1. Check and update dependencies for ‘UiPath.Mail.Activities.Design’ and ‘UiPath.UIAutomationNext.Activities.Design.Themes’.
  2. Update or reinstall the packages through “Manage Packages” in UiPath Studio.
  3. Verify correct versions in the project.json file.
  4. Clean and rebuild your project.
  5. Restart UiPath Studio.
  6. If the issue persists, consider reinstalling UiPath Studio.

Thanks & Cheers!!!

If I were to guess based on the info provided I would say that I think this is maybe a bad reference and this ‘Apollo’ thing was not part of the UiAutomation package, it might be part of the mail package and mis referenced.

I would start by searching through all the XAML files for any mentions of ‘Apollo’ to firstly pinpoint which one is problematic, from there maybe the issue will become clear.

After update UiPath.Mail.[Activities] below error showing now

Could not load file or assembly ‘UiPath.Platform, Version=22.10.2.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.

Open Mail.xaml file and search Apollo then remove line or comment that line of apollo and save your project then run issue has been resolved

‘Apollo’ isnt a usual thing in a project, so you must have added it somewhere, hopefully my response suggesting you focus on finding that helped.

No sir Not added anywhere in project

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