InfoPath form submit error: A value in the form may be used to specify the file name

by S.Y.M. Wong-A-Ton

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.

 Subscribe (RSS | Email)

Related Posts

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

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. Usage of techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

Working with InfoPath