In Siebel if you copy the value from field (which have line break character) and paste in notepad it will look fine, but when you use query step in workflow or script and check the logs, the search spec will have a large white space due the line break character stored in data base of that specific column and query will not work. For removing line breaks in a field you can use below eSciprt. Line breaks in strings Windows: \r\n carriage return followed by newline character. Linux: \n just a newline character. Regular Expression: if(MethodName == "Remove LB CR") { var vTemp = Inputs.GetProperty("vIn"); vTemp = vTemp.replace( /[\r\n]+/gm, ""); Outputs.SetProperty("vOut",vTemp); return (CancelOperation); } See Also: How to remove Line Break when selecting data from SQL Server