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?