Thursday, March 27, 2014

InfoPath Error: The form cannot be submitted

Error:
The form cannot be submitted because it contains validation error. Errors are marked with either a red asterisk (required filed) or a red, dashed border (invalid values)




 Background:
  • This is the most common error I noticed after getting customize with InfoPath feature enabled in SharePoint list
  • User has customized SharePoint list more precisely newform.aspx using InfoPath
  • And then suddenly started getting above error



Troubleshooting:
  • Open the list in InfoPath via list tab > customize form
  • It will open up newform.aspx in InfoPath
  • Once it is open check mandatory fields available in that form.
  • Make sure all mandatory fields are available and deployed in newform.aspx
  • Or
  • If you don’t want them to be displayed in newform.aspx just remove mandatory option
  • Republish the form and check behavior.




Feel free to reach me in case of any issues on above steps, thanks

2 comments:

Jordan Tucker said...

I am getting this error in fields that are pulling information from another list (i.e. a Data type of "LookupType") but still need to be "cannot be blank" fields. Any suggestions?

Pratik Vyas said...

Are source fields mandatory fields?

Popular Posts

Disclaimer

The opinions expressed on this blog are the personal views of Pratik's SharePoint Blog, and do not represent or reflect the viewpoints or policies of any past, present, or future employer, colleague, or customer, or any other entity. The posts on this blog are provided ‘as is’ with no warranties, express or implied, and confer no rights. Use of information contained within this blog, including specific technical steps mentioned herein, is at your own risk. References to specific software products, processes, resources, or companies do not imply any endorsement.