Terminal connection is NULL

Hello All,
I’m passing terminal connection details from one workflow to another using the terminal connection variable. However, in the invoked workflow, the ‘Terminal connection’ is displayed as NULL. Any leads would be helpful.

debug and trace with debugging panels
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

ensure the right settings like variable / argument wirings, Close connection flag … etc

Thanks for sharing the link. But, now i can see the value of ‘Terminal connection’ in parent workflow is NULL and so it is passing a NULL value to child workflow.

I the parent workflow, i have stored the conenction details in ‘output connection’ property. not sure why it is not populated. help pls

When step debugging and using the debugging panel you should identify quickly the location

  • where the connection is NOT null
    and
  • where the connection becomes null

We also mentioned:

just debug and trace again

Uncheck the Close Connection property of the Terminal Session activity.

Thank you for the reply, i noted that before and after debugging the step the ‘Terminal connection’ value remains NULL.
And also, close connection property is unchecked.
I’m using Direct Connection.

still you should be able by debugging to detect:

  • connection is returned and not null
  • where the connection becomes null within the flow

feel free to share your XAML(s) with us

@Mur

please check if there are two variables with same name

cheers

1 Like

I tried to print the value of terminal connection in message box and got error :
Message Box: Object reference not set to an instance of an object.

There are no duplicate variable names

@ppr @postwick @Anil_G

@Mur

  1. First select your terminal activity open variable panel and recheck
  2. Next keep a break point on terminal connection activity and then step into and check if the connection is saved via locals panel
  3. If both dont work try to change the version of package and check if it us a package issue

Cheers

@Anil_G what should be the datatype for property ‘Output connection’ and ‘Existing connection’ - TerminalConnection or TerminalSession ? pls calrify

@Mur

Ideally terminal connection

You can create a variable by selecting that firld and clicking ctrl+k …it would create with required type

Cheers