Hello.
In the picture that you have attached, you are using the variable directly.
I get the string from user intput. If the user types:
Hello world ' test.
..won't the single quote (') create any problems?
I was trying to use the string variable through a parameter instead:

- St6.PNG (24.39 KiB) Viewed 6050 times
Also, now that I have tried using it directly it seems to have the same problem.
I send you a demo project with two MRT files. One is using parameter for the string and the other the variable (directly).
Neither of them sends the query to the DB. The one that uses the variable throws the Exception given above, while the other doesn't seem to throw in this demo, but it does in my real project. Either way, it doesn't send the query to the DB either.
http://speedy.sh/Ur9VV/TestStimulsoft-2.zip
I don't know if I am missing sth.