Invoke VBScript is not capturing the output

I’m on studio 24.10.1 and using System.Activities package : 24.10.4.

Invoke VbScript activity doesn’t capture the output when this option “Hide Popups” is checked to TRUE.
I believe this option “Hide Popups” should only impact pop ups, dialog boxes/input boxes, as it used to be before. (eg: msgbox, inputbox etc)
But when the Script is returning the result using Wscript.Echo, it doesn’t return the result to the output variable in this case as well, if “Hide Popups” is checked.
I understand that WScript.Echo prints the message on output stream but as UiPath is invoking the vbscript, what would be the output stream in this case and how does it gets read into OutArgument?
am i missing something?

@golla.sandeep

Welcome to the community

I believe wait for output property needs to be checked

And hide popups will hide any errors also so check if the script is running properly as well

Cheers

Hi Anil

“wait for output” is checked.
script has no errors.
“Hide popups” would hide only the errors displayed on the GUI pop ups(eg: script error popup) or on any output steam?

Assume my script has the below snippet at the end and ideally if there is an error, Error Description should be returned in “Output” argument.
else
“Done” should be returned.

If Err.Number <> 0 Then
WScript.Echo Err.Description
Else
WScript.Echo “Done”
End If

So technically I’m not using a MessageBox to show up something in case of no error and the UiPath activity doesn’t allow any “script error/alert” kind of GUI pop ups in case of error in script (if we check “hide popups”).
But still the output argument is empty everytime, unless I uncheck “hide pop ups”.
this brings to my initial query about

Initial Query
“Hide popups” would hide only the errors displayed on the GUI pop ups(eg: script error popup) or on any output steam?

Or is this due to the fact that I’m using WScript object to return the value, should I be using CScript instead?

Many Thanks.

Hi @golla.sandeep

Do you still happen to have a sample dummy project that reproduces this issue for you? It would be helpful.