IBM Support

Empty string during playback Rational Robot script against .NET

Technote (troubleshooting)


Attempts to run an IBM Rational Robot script against a .NET application under 64-bit Windows result in a "script command failure on line ,,, "


The full error message is as follows.

**** Script Command Failure on line n of 'MyScript' - Empty String

The script does playback error free under Windows 7 x86.

The Windows Task Manager displays the application's process without the *32 suffix.


The execution headers refer to 64-bits execution.


64-bits Windows
The .NET extension in the Extension Manager is enabled

Resolving the problem

Force the application to run in 32-bit mode only. For this, you can use CorFlags, a Microsoft tool.

Consider the following steps.

  1. Install your .NET application in the Program Files (x68) folder.

  2. Run the following command. You application name is MyApp.

    CorFlags.exe /32BIT+ <path>\Program Files (x86)\MyApp.exe

  3. Run the Robot script again.


  • Observe that now the Task Manager displays the process with the *32 suffix,

  • CorFlags is part of the .NET Framework 2.0 Software Development Kit (SDK) (x64). You can download the latter from the Download Center on on the page .NET Framework 2.0 Software Development Kit (SDK) .(x64).

Document information

More support for: Rational Robot

Software version:

Operating system(s): Windows

Reference #: 1641341

Modified date: 25 July 2013

Translate this page: