cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble terminating Sessions of Mainframe application.

arpitalne
Level 3

I'm having trouble terminating a Mainframe application that has two parallel sessions running. When I terminate the first session, it also closes the second session also, but when I try to terminate the second session, I receive an error message that says "Failed to connect to IPC Port". Could someone assist me in resolving this issue?

First Session I'm terminating using Navigate stage by passing Session name in element.
15265.png
While  termination to Second Session I'm getting this error.
15266.png
This is how my application modular setup -
15267.png
15268.png15269.png
15270.png



------------------------------
arpit alne
------------------------------
6 REPLIES 6

Hello Arpit Alne,


Give a try similar to how you manually close the application.

Below link will redirect to the similar question, hope that helps.

https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&MID=2285&CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01


Although below document point to BP version 7 you can select the version by selecting the option on top left.

https://bpdocs.blueprism.com/bp-7-0/en-us/troubleshooting-mainframe.html



------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"

Harish M
Lead developer
America/New_York TX
------------------------------
-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

No It won't work. If I Close the mainframe appliction by send key strokes. So if I wants to launch mainframe session second time it throws error - Application already launch, because the main frame object still remain in Attach stage. I hope you get this. I want to close the Mainframe session from object level and as well as detach application.



------------------------------
arpit alne
------------------------------

Hi  arpit alne

Did you get chance to look into the below Kt documents it looks like  terminate function may not work for some of the main frame applications.
I would suggest go through  those docs 


https://support.blueprism.com/en/support/solutions/articles/7000077549

https://support.blueprism.com/en/support/solutions/articles/7000078406-bpe-error-failed-to-write-to-an-ipc-port-the-pipe-is-being-closed-when-using-mainframe-micro-focus



------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"

Harish M
Lead developer
America/New_York TX
------------------------------
-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

Hi
"How to resolve this issue:
We advise that you review the relevant Process/Object(s) and ensure the application/session is in the correct state when any of these actions are performed."
Yes the sessions are in current state, I'm continuesly performing the actions on it, its now ideal anymore.



------------------------------
arpit alne
------------------------------

Satish1414
Level 4

Hi arpit,

May be its because you are using the same session identifier for both the sessions at the object level.
15248.png

Best,
Satish Gunturi
Senior Consultant



------------------------------
Satish Gunturi
------------------------------

Can you tell which type of appliction you are selecting in application modular?

15257.png



------------------------------
arpit alne
------------------------------