Unfortunately designer does not yet support reasignments and notification properties so most likely this is the root cause of the error as it will corrupt the string. Have you tried to build package and run the example without opening the process in designer?
HTH