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 / Terminal Emulation ses...
Power Automate
Unanswered

Terminal Emulation session with IBM Personal Communcations of AS/400

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

 

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at

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

  • Chriskhansen Profile Picture
    20 on at

    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 🙂

  • Verified answer
    ZS440 Profile Picture
    262 on at

    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 at

    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

  • ZS440 Profile Picture
    262 on at

    @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 at

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


  • Verified answer
    Chriskhansen Profile Picture
    20 on at

    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.

  • Henry11 Profile Picture
    4 on at

    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.  

  • LorenzoV Profile Picture
    10 on at

    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?

  • NicMann Profile Picture
    2 on at
    @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).

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard