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
------------------------------
2 REPLIES 2

ritansh.jatwani
Level 9

Hi Jessie,

Instead of sending the Account Name using send keys, did you try using paste from clipboard functionality?

In other words, you can use Copy clipboard in Environment utility and set the account Name in clipboard. After that you can use global send keys to reach to the text box where you want to write the Account Name and then use "^v" (Ctrl+V) to paste the account Name. In this way, there won't be any limitation of using global send keys in your process without involving any much code changes.

Please let me know if the solution didn't work for you.



------------------------------
Ritansh Jatwani
Consultant

------------------------------

Hi, Jessie,

well, the reason is that the curly brackets are considered as special characters so you need to send in Global Send Keys following:
1. if you want to write { then you have to specify this "{{}"
2. if you want to write } you have to specify this "{}}"

Regards,

------------------------------
Zdeněk Kabátek
Head of Professional Services
NEOOPS
http://www.neoops.com/
Europe/Prague
------------------------------