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:
-
Handle the Exception
-
Disconnect the Mainframe Session
-
Reconnect to the Mainframe
can u bit elobrate on this
- Handle the Exception:
- Use a Try Catch activity around your mainframe interaction activities. This will help you catch any system exceptions.
- Disconnect the Mainframe Session:
- In the Catch block, use the Disconnect activity to ensure the current session is closed properly.
- 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
- 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.
-
Introduce a Delay:
-
Reconnect to the Mainframe:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.