You receive the following error message when you try to submit a form to SharePoint:
InfoPath cannot submit the form.
An error occurred while the form was being submitted.
A value in the form may be used to specify the file name. If you know the value in the form that specifies the file name, revise it and try again. Otherwise, contact the author of the form template.
Solution
Open the InfoPath form template in Design mode, go to Tools > Data Connections, select the Submit data connection that the form template is using to submit to SharePoint, click Modify, and ensure that in the Document library field you have specified an URL to a Document Library and not a SharePoint List.
Note:
While a Document Library is an instance of a SharePoint List, InfoPath does not currently support submitting forms to a SharePoint List.
If you are already submitting to a Document Library, but still get the error, ensure that the file name that you have specified in the File name field in the Data Connection Wizard is unique each time the form is submitted, or check the Allow overwrite if file exists check box, so that the form can be overwritten if it already exists in the Document Library.

Comments to this post were closed 30 days after it was published.