XML Exception while submitting Infopath Form

G

GD Sir

Hi All,
I am getting following error while submitting form in
web.Though it is running well in Preview but in web-browser following
exception is retrieved.
Any help will be highly appreciated.



There has been an error while processing the form.

Unexpected end of file while parsing Name has occurred. Line 1,
position 299.

System.Xml.XmlException: Unexpected end of file while parsing Name has
occurred. Line 1, position 299.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String
arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32
startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
at System.Xml.XmlTextReaderImpl.ParseEndElement()
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.ExceptionFilter(Boolean
fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock
catchBlock, FinallyBlock finallyBlock)
at
Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID
tagID, ULSCat categoryID, String output, Boolean fRethrowException,
TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObject..ctor(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObjects.<>c__DisplayClass2.<.ctor>b__0(EnhancedBinaryReader
innerReader, DataObject& newObject)
at
Microsoft.Office.InfoPath.Server.Serialization.EnhancedBinaryReader.ReadObjectMap[KeyT,ValueT]
(Dictionary`2 map, ItemReaderDelegate`1 readKey, ItemReaderDelegate`1
readValue)
at
Microsoft.Office.InfoPath.Server.Serialization.EnhancedBinaryReader.ReadObjectMap[ValueT]
(Dictionary`2 map, ItemReaderDelegate`1 readValue)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObjects..ctor(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState.DesterilizeVersion1(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState..ctor(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState.CreateFromByteArray(Byte[]
serializedSessionState, Byte[] serializedVersionState, Solution
solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionStateManager.GetSessionState(HttpContext
context, String editingSessionID, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.LoadFromSession(HttpContext
context, SPSite contextSite, EventLogStart eventLogStart, Solution
solution)
at
Microsoft.Office.InfoPath.Server.Controls.PostbackPage.<>c__DisplayClass1.<ProcessRequest>b__0()
 
B

Bryan Phillips

This is going to sound dumb but hear me out.

Do you have any secondary data sources? Are any of them NOT used on one
of the views of the form? If so, remove the data source OR add it to
EVERY view in the form.

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Microsoft MVP - Client Application Development
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



Hi All,
I am getting following error while submitting form in
web.Though it is running well in Preview but in web-browser following
exception is retrieved.
Any help will be highly appreciated.



There has been an error while processing the form.

Unexpected end of file while parsing Name has occurred. Line 1,
position 299.

System.Xml.XmlException: Unexpected end of file while parsing Name has
occurred. Line 1, position 299.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String
arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32
startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
at System.Xml.XmlTextReaderImpl.ParseEndElement()
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.ExceptionFilter(Boolean
fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock
catchBlock, FinallyBlock finallyBlock)
at
Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID
tagID, ULSCat categoryID, String output, Boolean fRethrowException,
TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObject..ctor(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObjects.<>c__DisplayClass2.<.ctor>b__0(EnhancedBinaryReader
innerReader, DataObject& newObject)
at
Microsoft.Office.InfoPath.Server.Serialization.EnhancedBinaryReader.ReadObjectMap[KeyT,ValueT]
(Dictionary`2 map, ItemReaderDelegate`1 readKey, ItemReaderDelegate`1
readValue)
at
Microsoft.Office.InfoPath.Server.Serialization.EnhancedBinaryReader.ReadObjectMap[ValueT]
(Dictionary`2 map, ItemReaderDelegate`1 readValue)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObjects..ctor(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState.DesterilizeVersion1(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState..ctor(EnhancedBinaryReader
reader, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionState.CreateFromByteArray(Byte[]
serializedSessionState, Byte[] serializedVersionState, Solution
solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.DocumentSessionStateManager.GetSessionState(HttpContext
context, String editingSessionID, Solution solution)
at
Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.LoadFromSession(HttpContext
context, SPSite contextSite, EventLogStart eventLogStart, Solution
solution)
at
Microsoft.Office.InfoPath.Server.Controls.PostbackPage.<>c__DisplayClass1.<ProcessRequest>b__0()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top