BROKER_ARG_NUM(-217): Error parsing line x of script "Finance.exe"

  • 7940295
  • 19-Aug-2009
  • 30-Jan-2014

Environment

SecureLogin
SecureLogin SSO


Situation

Issue

The SSO administrator is enabling an application and is using commands in the application definition. When they run the application the following error appears;

BROKER_ARG_NUM(-217): Error parsing line x of script ""Finance.exe""
OK More

Resolution

Cause

Invalid Syntax.

Example 1: In the first case, the customer was using Set with Eq as an argument as per the following section of the script;

If –Text ""Password Change Successful"" 
Set $Password Eq ?NewPassword 
EndScript 
EndIf

Example 2: In the second case, the customer was using ReadText to read a windows message without a variable to save to as per the following section of the script;

ReadText #65535

Example 3: In the third example, the customer was using RegSplit as per the following (input string but no output string).

RegSplit ""Connect to (.*)"" ?Title 

Solution

The customer edited the section of the script and corrected the syntax as per the following (removed the Eq). The Eq, Lt, Gt arguments are only used when checking the value as per the If statement in the script.

Example 1:

If –Text “Password Change Successful” 
Set $Password ?NewPassword 
EndScript 
EndIf

Example 2: For the ReadText command;

ReadText #65535 ?Msg

Example 3: For the RegSplit command;

RegSplit ""Connect to (.*)"" ?Title ?Site