Thank you for the answer.Hi RiojaAlberto,
Backslash '\' is used as an escape sequence character in most of the programming languages and systems.
The backslash tells the interpreter that the next coming character is going to have a special meaning and hence treat is accordingly. For eg; in C language, \n refers to a newline character and so on.
In your case Blue Prism is treating Q to be having some meaning when encountered as \Q.
In such cases you need to add another backslash preceding the '\' in the text as below.
@5C\\Qopen@
Try checking out and post back what happens.
Hi RiojaAlberto, didn't read anything about that in your post but I hope you have tried the above given solution of adding a SPACE after the \Q?
Also, can you share your findings as to what you meant by "how to avoid writting the string on SAP". Perhaps that could also help someone to come to a solution....or maybe even one step forward.
Hi,
Good you found an alternative way of writing the string.
You mentioned "I tried to write it directly to SAP, and it worked"
"However, I tried to write it into a HTML text field, and it worked"
Is there a typo in it. So then where did it not work?
- A same error message is on the below thread. It is for a path but you can take a look at it.
http://www.rpaforum.net/threads/invalid-escape-character-b.543/
- I see that you mentioned that you have already tried the forward slash.
But did you try all possible combinations and variations of it.
Original string: @5C\Qopen@
@5C\\Qopen@
@5C/\Qopen@
@5C/Qopen@
@5C\/Qopen@
These may not work but at least will help in reaching closer to the solution based on the errors they give.
- Also how about trying to split the string in two different data items just to see if it works that way.
Data1: @5C\
Data2: Qopen@
Then in the Writer: [Data1] & [Data2]
- Another option would be to intentionally set the Input string as the opposite slash and then correct it using the Replace inside the Writer just while passing to the textbox
InputString data item: @5C/Qopen@
Writer: Replace([InputString],"/","\")
It makes sense to me. Thank youHi RiojaAlberto,
Even though you mention that the error is from Blue Prism but it is only appearing when interacting with an external application like SAP which has its own semantics.
The slashes in combination with backward and forward work perfectly fine with HTML elements like you said. Probably you can try interacting with a BP rep about the issue. If they have a solution they will provide it to you or else if they see its not working then will include a fix in their next upcoming upgrade .
BahavanaKalva,Hello,
To over come this issue with SAP , please use SAP scripting. Let me know, if you are interested in the solution. I can help you out.