I have a Search Repository activity in a workflow with the following query. When I test the search query, it pops up the 'Define Token Value' window and when I provide the search term, it returns the result.
{LF:Basic ~= %(EntryToSearchToken) , option="NLT"} & {LF:Name="*", Type="D"} & ({LF:LOOKIN="\TestFolder", SUBFOLDERS=0})
But when I run the workflow, it throws an error, "A syntax error was encountered while processing the search or query statement."
Could not figure out the syntax issue.