Why do I get error -217 when logging in to a Web site?
Answer: The application name is derived from text strings in the login screen (for example, VERDE CENTRAL VMP or Clarify LODGE lodge).
When loaded into a temporary variable, these values work as expected in SetPlat statements and If-Exists statements (for example, SetPlat ?Clarify). However, if the literal value is used in an If-Exists statement in a Web script, error -217 occurs.
The following script shows the problem:
If-Exists $Username(Clarify LODGE lodge)
MessageBox a
Else
MessageBox b
EndIf
If you modify the first line as follows, the script works. You won't receive an error.
If-Exists "$Username(Clarify LODGE lodge)"
IMPORTANT: Use quotation marks around the string that follows If-Exists.