The scenario is that a user fills out a form which has a multi-line field. Upon submission, a workflow is started where it takes the data from the form's multi-line field and is used in an "Update Word Document" activity as part of a find and replace process.
When the form field data contains line breaks, this causes an error to occur in the "Update Word Document" activity. The error message states "The replace string cannot contain special or break characters." Please note that this is by design.
This causes the workflow instance to terminate and the Forms instance will become suspended (if it was set to wait for the workflow to complete before resuming).
If you want to take the multi-line data from the form submission (including line breaks) and apply that to a Word document using Workflow, then please do the following:
- The Word document should use actual fields like {{Descripcion}} instead of [Descripcion]. This will allow you to use the "simple field merge" update type rather than the "find replace" update type.
- Modify the "Update Word Document" activity to use the "simple field merge" type. When you "import field names from document" it should be able to find your fields and then you can just apply the multi-line form field token to it directly.
Full disclosure: Miruna provided this information which we confirmed to work with the document you provided in the support case.