Posted: 20 Oct 2016 15:32 EDT Last activity: 6 Nov 2018 20:02 EST
Unable to Interrogate as its exiting immediately - Openspan Automation
I have Pega Robotics Studio 220.127.116.11.0 installed in my machine. When I try to start the interrogation by setting the path to a batch file(which in-turn will open a Java Swing application), the application opens, but the interrogation and Adapter is stopping suddenly. I checked the output in the IDE and can see the below logs.
Can you please help me find out what could be the issue...
ModuleNameMatchRule failed for target advapi32.DLL - Mode: Simple, Value: Simple|True|(User Culture)|ole32.dll, Target Value: advapi32.DLL
Valid factory not found for module advapi32.DLL
Valid factory not found for module sechost.dll
ModuleNameMatchRule failed for target apphelp.dll - Mode: Simple, Value: Simple|True|(User Culture)|ole32.dll, Target Value: apphelp.dll
Valid factory not found for module apphelp.dll
Process cmd.exe with id 9432 has been destroyed.
All processes in adapter have been removed.
ControlBase.Detach(destroyControl:True) - Control is detached
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
When you are using a batch file to start an application you need to adjust your adapter settings. Change the Start Method to StartandWait. This will launch your batch file but then wait for the target application. To identify the target application enter a path in the Target Path property. It is not necessary to enter the complete path, generally just put the application name (example: calc.exe).
There is another option that does not require StartandWait. That method is to change the setting for HookChildProcesses to true. This however, will hook all processes started by your batch file. This could hook processes you are not intending to so it should be used with caution.