I have an InfoPath client event, with 3 actions configured to key off of a task action field in the form - "Save", "Submit", and "Redirect". Save & Submit function correctly; however, when "Redirect" is selected, I receive the following error:
InfoPath cannot submit the form.
An error occurred while the form was being submitted.
The SOAP response indicates that an error occurred on the server:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: The worklist item cannot be completed due to the following reason: A user name must be specified to which the task must be redirected to.
at SourceCode.Workflow.RuntimeServices.Functions.InfoPathFunctions.HandleException(Exception ex)
at SourceCode.Workflow.RuntimeServices.Functions.InfoPathFunctions.SubmitInfoPathData(Object infoPathFormXml)
at SourceCode.Workflow.RuntimeServices.InfoPathService.SubmitInfoPathData(Object infoPathFormXml)
--- End of inner exception stack trace ---
Any ideas???