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

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.