cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Special Characters and Global Send Keys

jessiebrooks
Level 4

We have a process that enters A bank account Name into an SAP System.

At times these Names may contain Parentheses as Customers are creating these names.  ex  "Bob's (Vacation) Checking"

When we enter the data as we find it via "Global Send Keys" Action in a Navigation block. We re get the following error  "Group delimiters are not balanced"

To try and account for this we added a calculation action before to adjust the contents of the Text variable to replace any occurrence of the (  or ) with  {(} and {)}    

Replace(Replace([Bank Account Name],"(","{(}"),")","{)}")   and store it in the Text variable [Bank Account Name]

Once we do this action we get 

"Special characters (~{}+^%) are not supported in SendKeys if an interval value is provided. Separate calls can be used to send control characters."

 

The SAP System will accept the Parentheses in the field if entered manually.  This is only an issue in Blue Prism and the Global Send Keys. 



------------------------------
Jessie Brooks
------------------------------
1 REPLY 1

John__Carter
Staff
Staff
Maybe see if "(()Vacation())" is any better Jessie?

https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys?redirectedfrom=MSDN&view=netframework-4.8
The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses () have special meanings to SendKeys. To specify one of these characters, enclose it within braces ({}). For example, to specify the plus sign, use "{+}". To specify brace characters, use "{{}" and "{}}". Brackets ([ ]) have no special meaning to SendKeys, but you must enclose them in braces. 


------------------------------
John Carter
Professional Services
Blue Prism
------------------------------