Maninframe Login Issue

How can I disconnect an existing mainframe connection and relogin during a system exception using UiPath?

Hi @arjunpateljk ,

could you please share the activities you’re currently using to connect and interact with the mainframe? This will help me provide more precise guidance.

Hi @sandyarpa767 ,

I’m using the Terminal Session activity to connect to the mainframe. I’m unable to disconnect an existing mainframe connection and relogin during a system exception. How can I achieve this

Hi @arjunpateljk ,

Thanks for sharing that. Here’s a solution you can try:

  1. Handle the Exception

  2. Disconnect the Mainframe Session

  3. Reconnect to the Mainframe

Hi @arjunpateljk

Check this

Regards,

1 Like

can u bit elobrate on this

  1. Handle the Exception:
  • Use a Try Catch activity around your mainframe interaction activities. This will help you catch any system exceptions.
  1. Disconnect the Mainframe Session:
  • In the Catch block, use the Disconnect activity to ensure the current session is closed properly.
  1. Reconnect to the Mainframe:
  • After disconnecting, use the Terminal Session activity again to reconnect to the mainframe.

even i have tried using Disconnect and its not working

  1. Terminate the Existing Session:
  • Instead of using the Disconnect activity, you can use a Kill Process activity to terminate the process associated with the mainframe session. Make sure to identify the correct process name.
  1. Introduce a Delay:

  2. Reconnect to the Mainframe:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.