Token Parsing error on web service before operation rule

Error: Error executing before operation rule for endpoint ‘Create Account’: BeanShell script error: bsh.EvalError: Sourced file: inline evaluation of: ``import java.io.IOException; import java.lang.IllegalStateException; import java. . . . ‘’ Token Parsing Error: Lexical error at line 101, column 128. Encountered: “\n”

Hi @osmanmohammed ,

It looks like, this error is occurring because of the extra backslashes, once check in the line 101 is there is any extra Backslashes ( \ ) in the data on this line. If you found remove it, and ensure that the Json string is properly Escaped.

Hope this will resolve your error.

Thank You.

3 Likes

Show us your code to verify the issue

shared the code in message

1 Like

Can you share the code.

Hi @osmanmohammed ,

Please use the below online json escape it may helpfull to convert in json format.The code should be without any escape character.

(Free Online JSON Escape / Unescape Tool - FreeFormatter.com)

Thank You!

This site is blocked in our org.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.