Terminal Session : There was an error connecting to terminal. Error code: Error

@ronak_94 I could see only service host in task manager on server.

image

1 Like

Hi @srinucslt even i am facing the same issue. uipath.terminal.host is not there in task manager.
Did you find any solutions?

hi, i have create activity that maybe can help you , Uipath Activity Get Specific String - YouTube

Hi guys, finally I found the solution. I just copied the mainframe profile and pasted it in project folder.It started working. Earlier it was in desktop. This might be due to folder rights.

3 Likes

Hello All,
I am facing same issue to connect IBM i access client solution terminal using IBM EHLLAPI.
Also I try UiPath interanal implementation, we connect but there error in screen size.
There is in solution any solution?

Hi @sandipshetake,

Please configure as below and make sure your application is open(else you use double click activity to open the application).
image

EHLL dllfull path:C:\Program Files (x86)\IBM\Client Access\Emulator\pcshll32.dll

1 Like

Hi, @RajeshT
Thanks. Its working
EHLL dllfull path:C:\Program Files (x86)\IBM\Client Access\Emulator\pcshll32.dl

2 Likes

Strangely, after doing all the mumbo jumbos of dll and different ways of communicating with As400. The one which resolved was simply copying the file in the workflow project location of UiPath.

Worked greatā€¦ seems issue with user access specially if you are working on server - windows.

1 Like

Hi Guys, I am new in UIPATH and facing the same issue, could you please guide me how and what did you copy the profile/ file ?

Are you killing the procces via cmd after first iteration? (This doesnt allow to close session normally and keeps old session data. Due to this you cant start new session, unless you reboot)
To solve this instead of killing with cmd use soft close Close Application activity.
This issue was driving me nuts while testingā€¦

1 Like

Hello Shyam, i read you had solved the issue. i encountered the issue as they described. and i have not solved it. i did:
Copy C:\Program Files (x86)\IBM\Client Access\Emulator\pcshll32.dll into the terminal session setup. and already keep JDE sign on before the session triggered.
but the error comes again. ā€œTerminal Session: There was an error connecting to terminal. Error code: Errorā€
May i ask you which profile you copied to project folder? it might be helpful to my issue solving. thanks for sharing in advance.

Hi everyone, this is what it worked for me to connect. Main frame automation(ibm as400) - #5 by GuillermoGomezdeSalazar

1 Like

Hello all,

I face exactly the same issue here. We use the terminal activities that UI Path offer but we have problem with ttermdotnet.dll below the complete error message in event viewer :slight_smile:

UiPath.Executor 20.10.6.0
UiPathTerminal.Connect Error connecting terminal: Unable to load DLL ā€˜ttermdotnet.dllā€™: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Iā€™ve check in .nuget folder etc and dll tree is present ā€¦ I try to install VC Redist, check .net etc but Iā€™m now stuck. Is anyone already have this error ?

Regards,
CĆ©dric

Use Direct Connect method. It is faster and far more reliable than third party clients. Ever since we switched to Direct Connect (from Bluezone) we have almost zero issues.

1 Like

@Kiroha :
The error has to do with Direct Connection.
The only scenario I know of where ttermdotnet.dll is not loaded has to do with a missing dependency.
Namely, Msvcp140.dll.
The easiest way to resolve that would be to install x86 Visual C++ Runtime from here Latest supported Visual C++ Redistributable downloads | Microsoft Learn

4 Likes

A few centralizing comments.

  1. 64-bit:

There are known difficulties in dealing with x64 64-bit IBM Terminal Apps (be it Personal Communications or ACS) through EHLL API (in short, itā€™s a DLL bridge involved). The suggestions here would be, highest preference order first:


  1. EHLL API things to try:

a) Try the ā€œRun In Processā€ option in the EHLL API configuration. What this does, the terminal related activities will not be conducted through an external process anymore (no UiPath.Service.Host windows process).
This helps in certain high security environments which could interfere with the Inter-process Communication.

b) Try the different hll api dlls available. These are my known approaches:


But in the end, the main recommendation here would be to switch to Direct Connection ( UiPathā€™s Terminal Session connectivity with IBM Mainframe is intermittent - #4 by cornel )

3 Likes

I am able to run the workflow smoothly but sometimes it is throwing "there is some error connecting to terminal ".I have used the same configuration as above.Could anyone please suggest some solution for this issue.

Thanks Cornel, with this component I could fix this issue.

Use Direct Connection. Third party clients are unreliable.

Thanks for this Cornel