Invoke Code logMessage.Message Doesn't Accept String Input

Hello

I am trying to invoke the code below in order to observe my invoke code activities with log messages in Orchestrator.

VB Code:
Dim logMessage As UiPath.Core.Activities.LogMessage = New UiPath.Core.Activities.LogMessage()
logMessage.Level = UiPath.Core.Activities.CurentLogLevel.Info
logMessage.Message = “aaa”

It says logMessage.Message is System.Activities.InArgument(Object) therefore it does not accept String and eventually I can’t log the message that I want.

Is this a bug? Can you please help?

Thank you in advance

Hi @mernst

Check this

How to log inside "Invoke code" activity?

Thanks
Ashwin.S

It gives the same error as you can see there is no difference between them

logMessage.Message = “Hello World!” (from your link)
logMessage.Message = “aaa” (My example)

Other people say that this is a bug after the latest update before it was String

Hope someone knows the answer or will act for this if it is a bug.