Cannot create unknown type '{http://schemas.uipath.com/workflow/activities}LogMessage

I think I might be having trouble with the version on the UiPath and/or packages.

The PC that I am developing the automation is 2023.10.0 and the UiPath.System.Activities version is 24.10.7.

It does run in a studio. no problems. However, when the process is uploaded in orchestrator, it does not work on my PC and the end user PC (UiPath version 2024.10.1) giving the error saying `Cannot create unknown type ‘{http://schemas.uipath.com/workflow/activities}LogMessage’.

System.Xaml.XamlObjectWriterException: Cannot create unknown type ‘{http://schemas.uipath.com/workflow/activities}LogMessage’. at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Activities.XamlIntegration.FuncFactory1.Evaluate() at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack1& activitiesRemaining, ActivityCallStack parentChain, IList1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors)
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Object state)
at UiPath.Executor.RobotRunner.d__126.MoveNext()`

I have tried deleting the packages folder to re-install the dependencies but that did not work.

Any help would be much appreciated

The Log Message activity is part of the UiPath.System.Activities package. That means that the package is not installed correctly or not installed at all by the robot user in the %userprofile%/.nuget/packages.

If the robot has access to external feeds, you need to have one of these sources in the Nuget.config in the robot installation folder:

    <add key="OfficialUSNew" value="https://pkgs.dev.azure.com/uipath-us/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json" />
    <add key="OfficialNew" value="https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json" />

If you don’t have access to these sources, then you need to have all the required nupkg of dependencies in a location where the robot can retrieve (usually in the Orchestrator libraries feed).

Check in the Event Viewer logs for Application you can see some NUxxxx errors.