.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

InfoPath cannot submit the form because it contains errors. Errors are marked with either a red aste

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :SharePoint
Hi, We have an infopath form using Form Services, and we keep getting an error when the 'Submit' button is pressed. We understand that this is the validation for the fields, however all fields are filled in. We have debugged the error, and traced it to an 'objInvalidViewDataNode' which says '1112,T00:00:00,T00:00:00,,false,false,false,-1,false,false'. Normally if a field needs to be filled in the object will say '30,,,,false,false,false,,false,false,V1_I1_S4_I1_S17_I1_T3' where V1_I1_S4_I1_S17_I1_T3 is the control causing the error. But we have confused with what the error is occurring. Normally, a get focus will jump to the field, but this doesn't even happen. Many thanks for any help. William Man

View Complete Post

More Related Resource Links

InfoPath form Errors in Windows 7


I am trying to submit some values to the SQL Server database.

Following config always work with no error

XP and InfoPath 2007

Following Config does not work

Windows 7 and InfoPath 2007

Getting Primary Key validation error while trying to submit (same values are submitted without any errors in Windows XP)

InfoPath cannot submit the form. An Error occured while trying to submit the data

Violation of PRIMARY KEY constraint 'PK_ProjectGroup_ProjectDefectProject_Form'. Cannot insert duplicate key in object 'dbo.ProjectGroup_ProjectDefectProject_Form'.



Infopath form using Visual Studio - How to bind repeating table on submit button click ?


Hello friends,

   I have created infopath form using Visual Studio 2008

Form have 3 dropdowns and one repeating table which is bound by Datasource ( List from sharepoint ).

whenever i select appropritae values from drop down, Repeating table gets bound as datasource for dropdown and repeating table are same.

I have done conditional formating for repeating table using repeating table properties.


My Question:


Now i included one submit button and i want when i click submit button it will check DropDown Values and if appropriate record matching these values found it will fill repeating table

How i achive this ? as i dont find how to bind repeating table on submit button.

Please help if anyone have answer.


Thanks and Regards,


Kapil Bhosale.




InfoPath Form: Encountered error while trying to submit the form from the browser

Hi,I have created a form in InfoPath, and i filled in the form in the browser. But there's an error apppeared when i tried to click on the submit button to submit the form. May i know is there ways for me to check what cause this error because i have no idea about this. "There has been an error while processing the form. There is an unclosed literal string. Line 1, position 543. System.Xml.XmlException: There is an unclosed literal string. Line 1, position 543. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr) at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at Microsoft.Office.InfoPath.Server.Xml.InfoPathXmlDocument.Load(XmlReader reader) at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObject.<>c__DisplayClass3.<.ctor>b__0() at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.Exception

submit infopath 2003 form to a sharepoint list

hi, is it posible to add  an infopath 2003 form to a sharepoint list, not document library but a list. and can i create views from the infopath 2003 form?

InfoPath form web part stops the close on submit

I have successfully published HTML browser enabled InfoPath 2010 forms to form libraries in SharePoint 2010. Users can navigate to the libraries and click new docuiment and fill out and submit forms, and the behavior of submit is as programmed in the form namely I have a concat rule for form name and chose action after submit to close the form with a success message. The problem I am seeing is a little abstract so stay with me while I explain. I'm hosting a number links to web part pages with the infopath web part on them. I use a links web part to aggrigate about 16 forms links on a single page. Users can successfully click on a link, are migrated to the web part page that has the form displayed in the infopath web part and all is well till they click the submit (on the ribbon, or custom button or whatever) The form does successfully get saved into the form library, but the form does not close. I need to make this process very simple for users without any training expended on the process. I'd like to shift focus to the previous web page, or close the form or something dramatic visually to show the user that they have completed the form fill out, and allow them to fill another form. Codebehind examples gratefully accepted! /Robin    

How do I submit an attachment in an Infopath Form to a Sharepoint list?

I have already written code to submit my infopath data to my share point list, but now I need to find out how to submit an attachment to the same existing custom list in Share Point 2007.

submit infopath form to sharepoint library and email



how can i submit an infopath form to a SP library as well to the approvers email.

the email has to send to the manager's emailaddress that is automatically filled in the form.

i now how to submit to an email address but how can i use 1 submit button for both actions?


InfoPath Forms Services errors

I'am running SharePoint 2010 Server Standard. When trying to configure any of the InfoPath Forms Services from SharePoint 2010 Central Administration I get a File not found error containing a correlation ID number. I'm at a loss as to what the issue is.

Submit InfoPath form to SharePoint Form Libraries on the Fly



I have a urgent requirement - Submitting InfoPath Form 2007 to SharePoint Form Libraries dynamically on the fly.   http://blogs.msdn.com/b/infopath/archive/2006/11/08/submitting-to-this-document-library.aspx

I followed the above link, able to submit new forms to the form libraries dynamically.  But when I edit the form and try to resubmit the form again to the same form library with the same file name it throws error. 

The given key was not present in the dictionary.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Microsoft.Office.InfoPath.Server.Util.ReadOnlyDictionary`2.System.Collections.Generic.IDictionary<K,V>.get_Item(K key)
at TIPTemplate.FormCode.FormEvents_Loading(Object sender, LoadingEventArgs e)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass6.<>c__DisplayClassa.<add_Loading>b__3()
at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEvent

create an infopath form that receive and submit data to sql server database in the same form



i want to create an infopath form that can receive the data out of the slq server database and edit the data in the database and then submit it.

here is what i did so far.

i created a data connection to a sql server database to SUBMIT the data.

also i created a data connection to the same sql server database to RECEIVE the data.

when i open the form the user and the user's details are already filled in the form, now i need to let the user edit the data in the fields or add a new data in a field and then the form need to be submitted to a temporary database to be checked first by an approver and after approval the form must be submitted to the real sql server database.

i tought about that the approver just need to click a button and the data will be submitted to the the real database.

both the temporary and the real database has the same tables and fields.

i just need to know how to edit and submit the data to the temporary later to the real database



How to submit an InfoPath form back to SharePoint?


Hallo Clayton,

another question:  if I work in filesystem, I can open a infopath form (.xsn) , fill it and save the result as data file (.xml).

Can I realize a similar behaviour with SPF in a form library:  the user opens a form (.xsn), fills in the data, and then press s submit button, so that the data file is stored somewhere in sharepoint.

I have tried this, but I cannot find a way to "submit" the data back to sharepoint (from the Infopath client).

Thank you!


Infopath Form Submit Options



I would like to make a form read-only after it is submitted to a Form-library. How do we set this in the Form Template?. I am using Visual studio 2008 Infopath Form Built in Template.

One way is to make a copy of the Default view and create a new so that it is read-only view but how do I set up such that the default View shifts to REadonly after Form submission.

Any help is appreciated,



InfoPath 2010 master details form, Submit data to muliple Form Library

I have 2 Form library
Library 1 :
    Employee ID
    Employee Name
    Employee Age
Library 2 :
    Employee ID

I want to create one form using Info Path as master details form. i.e for Library 2 repeating field.
How we can do this any one have any idea.

I have tried to submit this form data into 2 data connection in info path, but its not working ....

Web form shows error message even when there is no errors!


Hi there,

I'm new to c# and I seem to be having a problem with an error message. If my textbox is left empty my code will throw a format exception and display the message in a label. If I then add a number to the textbox it runs correctly but the error message remains.

Any idea what am I doing wrong?


protected void btnTemp_Click(object sender, EventArgs e)
            float temperature;

                temperature = float.Parse(txtTemp.Text); 

                if (temperature < 15)
                    lblHotCold.Text = "COLD!";
                    lblHotCold.BackColor = Color.Blue;
                else if (temperature > 15 || temperature == 15)
                    lblHotCold.Text = "HOT!";
                    lblHotCold.BackColor = Color.Red;
            catch (FormatException)
                lblErrorMsg.Text = "Textbox can't be left empty";

Cheers Smile

submit infopath form thru outlook automatically


I worked on infopath2007 and outlook2007 , I designed form to send it to a specific email that user select this email form dropdownlist then clicking SUBMIT button to send it. everything is working till now but my problem I want :

when clicking a submit I want to open outlook program with previous emial selected automatically appear in "To" field in message window.

and another issue how to include this form into body message as editable form to send to someone to update it then back to me.

please help me.

How to create a workflow that submit an infopath form to a library of a specific user



can someone help me with this?

i'm using wss 3.0 and infopath 2007.

i have a form that need to be approved by a specific approver.

first when the user submit the form it send an email to the specific approver and the form is also submitted to a library.

so the approver gets an email and the approver need to get the form submitted to his library.

the email part is working fine. now i miss the library part.

i think i need to use a workflow. but how can i create a workflow that assinged a to-do item to a specific approver instead of a group.

in my library i have the following fields:

form name, created by and aprrover's name.

now i need the workflow to look up for the name of the approver and send an "assigned a to-do item" to the specific approver of the form

can someone help me with this?

How to redirect Infopath form on Submit


I have created a sharepoint list and created a form in infopath.  Currently when the user submits they get the standard message that says the form was successfully submitted.  What we would like to do is rather than do that redirect it to a new page.  I have searched around and it looks like you are not able to put code in infopath forms that are connected to list.  So my question is what is the best approach to resolve this issue? Is it even possible?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend