Skip to main content
Community site session details

Community site session details

Session Id : RWjJLVgphHI6WpHo/p19G5
Power Automate - Power Automate Desktop
Answered

Terminal Emulation session with IBM Personal Communcations of AS/400

Like (0) ShareShare
ReportReport
Posted on 22 Mar 2021 10:14:20 by 20

Hey,

 

Trying to setup a Terminal Session, and seemingly struggling to do so..

 

Using the "Open Terminal Session" from PAD, and HLLAPI as provider, and HLLAPI DLL PATH to: mypath/ehlapi32.dll

I set the session name to "A", and I am receiving the following error:

Robin.Core.ActionException: Error during Communcation emulator ---> Robin.Shared.Runtime.TerminalEmulationActionException: Exception of type 'Robin.Shared.Runtime.TerminalEmulationActionException' was thrown.

   at Robin.BridgeToHLLAPI.HLLAPIActionsImpl.<>c__DisplayClass16_0.<Open>b__0()

   --- End of inner exception stack trace ---

   at Robin.Modules.TerminalEmulation.Actions.OpenTerminalSession.Execute(ActionContext context)

   at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

Chriskhansen_0-1616407944682.png

 

Any ideas? Thanks in advance!

 

  • NicMann Profile Picture
    2 on 07 May 2025 at 16:24:36
    Terminal Emulation session with IBM Personal Communcations of AS/400
    @fraenK - PAD has permissions to access it ... how do you check it?
     
    By the way I have the same error and nothing worked (tried all the possible solutions proposed here).
  • LorenzoV Profile Picture
    10 on 02 Dec 2021 at 17:23:34
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    Are you trying to automate data entry in a AS400 session using PAD right? I can't find much available online mind me asking for some guidance?

  • Henry11 Profile Picture
    4 on 06 Apr 2021 at 12:55:03
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    I experienced the same as you. I gave up IBM client access. Instead I tried BlueZone client which worked well.

     

    I did the same settings in HLLAPI and pre-launch a session A without logon. Power Automate is able to communicate with the session freely.  

  • Verified answer
    Chriskhansen Profile Picture
    20 on 28 Mar 2021 at 19:58:37
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    Turns out - if I open the session from a .ws file, and make sure to NOT do anything at all (not even login), I can connect to this Session by granting the matching session name. So the solution is to open from the .ws and not do anything at all, and then connect using the name you have been granted. Seems a bit scuffed, but it works.

  • Chriskhansen Profile Picture
    20 on 22 Mar 2021 at 15:52:37
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    Thank for you effort - just to sum it up.

     

    I basically open my instance, from a .ws file located on my desktop. I ensure that the service PCSWS.EXE is running, and I refer to PAD to initiate a terminal emulation, and receive the error originally described.. 


  • ZS440 Profile Picture
    262 on 22 Mar 2021 at 12:49:30
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    @Chriskhansen 

    Start by specifying .ws in the Run DOS command action. (I didn't use any arguments.)
    Or start it by double-clicking directly on .ws
    Then use open terminal session.


    This is how I operate without problems.

    I don't know anything more.

  • Chriskhansen Profile Picture
    20 on 22 Mar 2021 at 12:33:49
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    Hey, I am very inexperienced with PCSWS and PCOM etc. 

    How do I start PCOM from my workstation profile? 

    I tried using the PCOMSTRT command as listed here, https://www.ibm.com/support/knowledgecenter/SSEQ5Y_6.0.0/com.ibm.pcomm.doc/books/html/quick_beginnings09.htm
    but received an identical error.

    Pcsws.exe is one of the running processes

  • Verified answer
    ZS440 Profile Picture
    262 on 22 Mar 2021 at 12:27:43
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    Hi @Chriskhansen 

    You need to start PCOM from the workstation profile (*.WS) first.
    Make sure that PCSWS.EXE is present in the running process.
    In this state, the Open terminal sesseion action will allow the PAD to access the PCOM.
    If you are using the default installation
    HLLAPI DLL path : C:\Program Files\ibm\Personal Communications\EHLAPI32.dll
    Session name :A

     

    try it.

  • Chriskhansen Profile Picture
    20 on 22 Mar 2021 at 12:04:44
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    Hey fraenK,

    I am not sure how to authorize whether I have the right DLL/version from IBM to be fair.

    PAD indeed has access to it 🙂

  • fraenK Profile Picture
    2,125 on 22 Mar 2021 at 12:02:46
    Re: Terminal Emulation session with IBM Personal Communcations of AS/400

    Did you double check that you have the right DLL/version from IBM and that PAD has permissions to access it?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Loading complete