I am building a mainframe automation sequence with a terminal TN3270, emulated via Attachmate Reflection. In a certain transaction, every read operation (Get text at position, Get screen area) generates the exception “Terminal error: NotConnected”. The affected screen displays a table, in which navigation to different pages is done by pressing F7 and F8, and the Send Control Key commands are functioning properly instead. Upon closer inspection, it was noticed that at the first read operation the process UiPath.Terminal.Host terminates. In order to recover the original connection, we tried to restart the UiPath.Terminal.Host from its executable file but when a new terminal session activity is executed (after the restart) then a new terminal window is opened, and it is impossible for us to recover the old connection.
Has anyone encountered the same problem and knows how to solve it?
I would try IBM EHLLAPI for that particular screen - you can connect with EHLLAPI at any point, you don’t need to open the terminal from the workflow, you can jut st have it open externally and make one tiny workflow for that particular screen to see if Get Text and Get Text At Position work with this method. If it proves to work better, switch the connection to EHLLAPI in your real workflow.
A second approach, since you are talking about a table. Try this for a change:
Press on Screen Scrape (on the menu bar of UiPath)
Press F3 to select a region
Select the table region exactly.
You should get the data as a big String.
If 4) is successful, you can use a Generate Data Table Activity with Predefined Column Lengths options as so:
Set Text?
Set Text is not a terminal activity.
You should be using Send Keys, not Set Text.
Also, for Get Text use the one in yellow, not the one in grey.