Skip to main content

Notifications

Community site session details

Community site session details

Session Id : INTN778uQfQ5nL2lFNbq4W
Power Automate - Power Automate Desktop
Unanswered

"Error communicating with emulator" while open a terminal session with IBM Personal Communications

Like (0) ShareShare
ReportReport
Posted on 10 Oct 2021 16:17:31 by

Hi,

 

Despite reading documentation and searching in the forum, I'm unable to open an HLLAPI terminal session with IBM personal communications. I'm using the suggested parameters and instructions, e.g.:

NadirM_0-1633882138550.png

So, I firstly open my ws session which is then shown in task manager:

NadirM_1-1633882212390.png

Then, in PAD, I launch the "Open terminal session" command but, after a minute, I get:

 

Object reference not set to an instance of an object.: Microsoft.Flow.RPA.Desktop.Robin.SDK.ActionException: Error communicating with the emulator ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Flow.RPA.Desktop.Modules.TerminalEmulation.Actions.HLLAPISessionFacadeToVariant..ctor(String path, String sessionId, Boolean isEnhanced)
at Microsoft.Flow.RPA.Desktop.Modules.TerminalEmulation.Actions.TerminalEmulationActions.OpenTerminalSession(Variant installationPath, Variant dllPath, Variant sessionName, Variant profile, Variant host, Variant port, Variant& session, Int32 provider, Int32 configuration, Int32 hostType, Boolean attach)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.TerminalEmulation.Actions.OpenTerminalSession.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

 

Thanks in advance for any hint

  • efr2000 Profile Picture
    2 on 20 Jun 2024 at 16:15:00
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    I have the same problem. Did you solve it?

    I am not sure it the office version has anything to do with it. I have the 32 bit office.

  • Community Power Platform Member Profile Picture
    on 19 Oct 2021 at 13:48:23
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    UPDATE:

     

    I've installed IBM personal communications and PAD on my personal laptop and the same exact action "OPEN TERMINAL SESSION" works fine. So it looks like somehow PAD is unable to connect to the opened PCOMM session on my working laptop. I've tried reinstalling and running PAD as administrator but still no luck. I've also tried, instead of PCOMM, with Quick3270 (another terminal emulator) but again, PAD is unable to establish the connection with the active session.

    Any idea?

  • Community Power Platform Member Profile Picture
    on 18 Oct 2021 at 09:52:33
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    This is the attempt with 30 seconds, same result:

    NadirM_0-1634550789665.png

     

  • Community Power Platform Member Profile Picture
    on 18 Oct 2021 at 09:47:47
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    Ok, I'll try to give 30 seconds. Anyway, in the documentation related to terminal sessions, it's not specified to use a "Run application" action before.

    What it's actually said in another post here:

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Terminal-Emulation-session-with-IBM-Personal-Communcations-of-AS/td-p/866974

     

    is that the terminal should be opened before starting the bot (and that's what I was trying to do: starting manually the emulator and then, once opened and it's active in task manager,  trying to connect with "open terminal".)

  • sunilb Profile Picture
    Microsoft Employee on 18 Oct 2021 at 09:42:29
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    I am guessing it is taking more time for session initialization so you need to give more wait after Run Application.

  • Community Power Platform Member Profile Picture
    on 18 Oct 2021 at 09:38:48
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    I did it when I tried, as you suggested. When the "Open terminal" action is parsed, the emulator is already opened.

  • sunilb Profile Picture
    Microsoft Employee on 18 Oct 2021 at 09:36:05
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    Can you please try giving more wait after Run Application action.

  • Community Power Platform Member Profile Picture
    on 18 Oct 2021 at 09:34:02
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    Thanks, I've tried it but didn't solve. The 3270 emulator is opened fine using "Run application action" but then "Open terminal session" doesn't work. Same error as shown in my main post.

  • sunilb Profile Picture
    Microsoft Employee on 14 Oct 2021 at 09:06:14
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    You need to open that application with run application action. 

     

    Also give add some wait.

     

    After that you can use Open Terminal Action with correct session name. 

     

    I hope above will help you.

     

     

  • Community Power Platform Member Profile Picture
    on 14 Oct 2021 at 08:44:00
    Re: "Error communicating with emulator" while open a terminal session with IBM Personal Communications

    Hi SHindomo,

     

    yes, I saw it, before opening this topic. In fact, the list of actions I specified I took reflect what was suggested in that topic. But still no success.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 11 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 4

#3
stampcoin Profile Picture

stampcoin 2

Overall leaderboard
Loading started