BROKER_UNEXPECTED_END_OF_SCRIPT(-201): Error parsing line x of script "Finance.exe"

  • 7940310
  • 19-Aug-2009
  • 26-Apr-2012


SecureLogin SSO
All Versions
MS AD, LDAP, NT4, Citrix, Terminal Services


SSO administrator is creating an application definition. When they launch the corresponding application the following error appears;

BROKER_UNEXPECTED_END_OF_SCRIPT(-201): Error parsing line x of script ""Finance.exe""

OK More


Example 1: Every Repeat command must include an EndRepeat.

The customer had not entered the EndRepeat command in the script. The line number referred to is always the last line of the script because the script has been parsed but the EndRepeat was not found. Script execution halts until the problem is solved.


Type “D”


Example 2: Every Parent command must include an EndParent.

The customer edited the section of the script and corrected the syntax as per the following (added EndRepeat).


Ctrl #1


Additional Information

Root Cause

Invalid Syntax using the Parent, Dialog or Repeat command, without the corresponding EndParent, EndDialog or EndRepeat.

Example 1: The SSO administrator is enabling an application and is using the Repeat command in the application script. The Repeat command can be used to “loop” a section of a script until the desired action is complete. It is often used in Terminal Launcher scripts to check for errors upon login such as Invalid Username, Change Password, Account Locked etc.

In this case, the customer wanted to clear a field by pressing the delete key 12 times (the number is not required if you require a continuous loop) and had entered the following lines in the script;

Repeat 12

Type “D”

Example 2: The administrator wanted to click the OK button (Dialog ID #1 found using Window Finder) on the parent (outside of the username and password entry frame).

The following command contains 2 x Parent instead of 1 x Parent and 1 x EndParent.


Click #1