web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "Error communicating w...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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

I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hello @Anonymous 

     

    Did you already refer the past thread below?

    Solved: Terminal Emulation session with IBM Personal Commu... - Power Platform Community (microsoft.com)

     

    I don't know if they discussed the same issue as you, but there may be some helpful part or hint for you.

     

    Good luck.

  • Community Power Platform Member Profile Picture
    on at

    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.

  • sunilb Profile Picture
    Microsoft Employee on at

    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 at

    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 at

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

  • Community Power Platform Member Profile Picture
    on at

    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 at

    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 at

    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".)

  • Community Power Platform Member Profile Picture
    on at

    This is the attempt with 30 seconds, same result:

    NadirM_0-1634550789665.png

     

  • Community Power Platform Member Profile Picture
    on at

    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?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard