I recently experienced an issue when attempting to send emails in Forms containing a link whose URL is a process field variable generated by the Workflow Generate Laserfiche Web Client URLs activity, and populated to the process using the Set Business Process Variables activity.
It appears that any newline characters present in the Use Laserfiche search syntax of the generate web client URLs activity are passed as part of the URL. If the URL is displayed in a Custom HTML element on a form, the link works correctly. However, if the URL is used in a link in an Email Service Task in Forms, the newline is converted to a line break (<br>) element, resulting in the search syntax being invalid (An unrecognized character was encountered. [9085]).
In both examples below, a workflow that generate a sample repository search URL and set the value to a process variable was invoked from a Forms process. That URL was then used as the link target in an email.
Invalid Syntax Resulting in an Error
Valid Syntax without Error
I encountered this issue as a result of what appears to be an unrelated issue in the Workflow Designer, where I had inserted a new line in the search syntax to help visually validate. When I backspaced to remove the newline before publishing the workflow, it appeared to have worked as expected. However, when I copied the syntax to a text edit, a newline was still present. I haven't been able to determine steps to reproduce this issue consistently, however.