Showing posts with label infopath. Show all posts
Showing posts with label infopath. Show all posts

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

Wednesday, February 5, 2014

Customize Newform.aspx using InfoPath

Last week I was assigned to customize a list page. Here are the steps and some issues I faced during this assignment.

Design / Customization phase:
  • Open SharePoint site
  • Navigate to List
  • Select on the List and then click customize form (it by default shows InfoPath icon)





  • This will open the NewForm.aspx page in InfoPath
  • Make necessary changes and publish / quick publish it to SharePoint
  • By default it publishes to the same list. (to change the default quick publish option we have to dig hard and change some codes inside that form xml. I will discuss on it later)
  • That’s it now you have customized InfoPath form loaded to your list


Validation phase:
  • Now where to check this is the same customized form you published via InfoPath?
  • From Ribbon select Item > New Item



  • This should open up a customized form.
  • To reconfirm it, open this list in SPD or in explorer view
  • Now go to Forms folder and confirm Newfs.aspx page resides there


Known issue / troubleshooting phase:
  • I noticed this issue most of the times when we customize list newform it only updated in Ribbon part, in other words it only updates content type filed.
  • I faced an issue with add new item option which we generally find below all items



When I clicked on it, I found the old / original newform.aspx page opening.


Saturday, January 14, 2012

About SharePoint 2010

Here are some very good and useful stuff to get yourself involved in SharePoint 2010 environment

SharePoint Server 2010 performance and capacity test results and recommendations

Capacity management and sizing for SharePoint Server 2010

Office 2010: Product Guides

SharePoint Server 2010 Enterprise Search Evaluation Guide

InfoPath 2010 Reference: InfoPath 2010 Developer Reference for Form Templates

Guide for IT Pros for Microsoft Office Web Apps Beta

Planning guide for Microsoft SharePoint Server 2010 Beta

Operations guide for Microsoft SharePoint Foundation 2010 Beta

Deployment guide for Microsoft SharePoint Server 2010 Beta

Databases That Support SharePoint 2010 Products

Extranet Topologies for SharePoint 2010 Products

SharePoint Server 2010 performance and capacity test results and recommendations

Capacity management and sizing for SharePoint Server 2010

SharePoint Server 2010 capacity management: software boundaries and limits

SharePoint Server 2010 performance and capacity technical case studies

InfoPath 2010 Enhanced Integration with SharePoint Server 2010 and Its Implications When Designing Forms for Applications

Monday, October 3, 2011

How to: fix InfoPath form error – “An error occurred when the form was being submitted’


Issue:
While Trying to submit an InfoPath form getting error – “An error occurred when the form was being submitted'



Resolution Steps:
  • Found user has many fields and most of the fields are copied from other field so when we open a form in design mode found following error – Control stores duplicate data 
  • At the first step of resolution I was suspecting this is the culprit behind this issue, and removed all duplicate fields added new fields and saved the form
  • Republished the form and when clicked on Submit button got the same error.
  • Again opened the form in design mode and checked following options in Form options Browser category

  • All options were @ the right place.
  • Then when I went to Submit options I was quite surprised because it’s a very small option I did not check and spent lot many time after this issue.
  • Go to Tools > Submit Options > Manage > Modify

  • Just checked “Allow overwrite if file exists” option.
  • Saved the form and published it again and saw all is good.
  • User did not check it because he was using a unique file name , he had manually written “Form” and he was afraid that if he this option is checked all form entries will be overwritten.
  • So I have changed file name to user name field, so whatever user enters into that filed, The form will be saved with that name.

Tuesday, August 2, 2011

Unable to publish browser enabled InfoPath forms to a SharePoint form library

ISSUE
User will get the following error while publishing an InfoPath form template to a form library in spite of the fact that the template is browser compatible "This form template is browser-compatible, but it cannot be browser-enabled on the selected site."
CAUSE
This problem happens which you delete the default form library which is created when the first time enterprise features are enabled called “form templates”
RESOLUTION
Deactivate and Activate the InfoPath features again using force switch. To do so, run the following commands:
stsadm -o deactivatefeature -filename IPFSSiteFeatures\feature.xml -force -url %SITE_COLLECTION_URL%
stsadm -o deactivatefeature -filename IPFSWebFeatures\feature.xml -force -url %SITE_COLLECTION_URL%
stsadm -o activatefeature -filename IPFSSiteFeatures\feature.xml -force  -url %SITE_COLLECTION_URL%
stsadm -o activatefeature -filename IPFSWebFeatures\feature.xml  -force -url %SITE_COLLECTION_URL%

Unable to publish browser enabled InfoPath forms to a SharePoint form library

ISSUE
User will get the following error while publishing an InfoPath form template to a form library in spite of the fact that the template is browser compatible "This form template is browser-compatible, but it cannot be browser-enabled on the selected site."
CAUSE
This problem happens which you delete the default form library which is created when the first time enterprise features are enabled called “form templates”
RESOLUTION
Deactivate and Activate the InfoPath features again using force switch. To do so, run the following commands:
stsadm -o deactivatefeature -filename IPFSSiteFeatures\feature.xml -force -url %SITE_COLLECTION_URL%
stsadm -o deactivatefeature -filename IPFSWebFeatures\feature.xml -force -url %SITE_COLLECTION_URL%
stsadm -o activatefeature -filename IPFSSiteFeatures\feature.xml -force  -url %SITE_COLLECTION_URL%
stsadm -o activatefeature -filename IPFSWebFeatures\feature.xml  -force -url %SITE_COLLECTION_URL%