Schema validation found non-datatype errors - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Schema validation found non-datatype errors

Last post 06-11-2013 12:28 PM by esb1922. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-07-2009 12:55 AM

    • cywan
    • Top 500 Contributor
    • Joined on 04-27-2009
    • Posts 32

    Schema validation found non-datatype errors

    Hi,

    After i have deploy the form into SharePoint and tested the form after enter details and submit, then i encounter this error message : 

    Schema validation found non-datatype errors.

    Microsoft.Office.InfoPath.Server.SolutionLifetime.SchemaValidationException: Schema validation found non-datatype errors. at Microsoft.Office.InfoPath.Server.SolutionLifetime.SchemaValidation.Validate(Document document, XPathNavigator subtreeToValidate, XmlOperation operation) at Microsoft.Office.InfoPath.Server.DocumentLifetime.XmlNotificationManager.DoSchemaValidation(XmlNodeChangedEventArgs e) at Microsoft.Office.InfoPath.Server.DocumentLifetime.XmlNotificationManager.NodeChangedHandler(Object sender, DomEventArgs e) at Microsoft.Office.InfoPath.Server.Xml.DomEvents.FireQueuedEvents() at Microsoft.Office.InfoPath.Server.Xml.DomEvents.AtomicEvent.System.IDisposable.Dispose() at Microsoft.Office.InfoPath.Server.Xml.XPath.InfoPathXPathNavigator.set_OuterXml(String value) at Microsoft.Office.InfoPath.Server.Xml.XPath.XPathNavigatorHost.<>c__DisplayClass31.b__30() at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.ExecuteOMCallWithExceptions(OMCall d, ExceptionFilter exceptionFilter) at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMSecurityContext.ExecuteOMCall(Solution solution, SecurityLevel methodSecurityLevel, ExceptionFilter exceptionFilter, OMCall d) at Microsoft.Office.InfoPath.Server.Xml.XPath.XPathNavigatorHost.set_OuterXml(String value) at HODApproval.FormCode.FormEvents_Loading(Object sender, LoadingEventArgs e) at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass6.<>c__DisplayClass8.b__1() at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk) at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass6.b__0(Object sender, LoadingEventArgs e) at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass34.b__30() at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d)

    An entry has been added to the Windows event log of the server. Log ID:5337

    Can anyone tell me what is this error message all about? I have try to search thru the Net and most of it is related to xsi:nil.

    Is this error message related to xsi:nil as well?

    Please advice. Thanks.

    Regards cywan 

     

  • 05-07-2009 07:45 AM In reply to

    Re: Schema validation found non-datatype errors

    Does your form have any custom code in it? Or are you just employing standard InfoPath functionality?

    Hilary Stoupa

  • 07-06-2009 08:28 PM In reply to

    • tza_03
    • Not Ranked
      Female
    • Joined on 04-09-2009
    • MALAYSIA
    • Posts 18

    Re: Schema validation found non-datatype errors

    Hi,

    I encounter same error message as cywan.

    My form have custom code in it. In my code, I populate data from database and write the data to repeating table using XmlWriter. The error message occur at XmlWriter.Close()

    Please kindly advice. I'm at wit end here.

    Thank you in advance.

    Regards, TZA

    Filed under: , , ,
  • 07-06-2009 11:31 PM In reply to

    Re: Schema validation found non-datatype errors

    Hi,

    Can you verify below links. A detailed explanation is available here.

    http://sharenotes.wordpress.com/2008/03/23/infopath-forms-code-error-schema-validation-found-non-data-type-errors/

    http://www.infopathdev.com/forums/p/8014/29140.aspx.

    Hope this helps.

    Rajitha
  • 06-11-2013 12:28 PM In reply to

    Re: Schema validation found non-datatype errors

    Hi,

    I understand it's been long time but I checked all possible forums/links and still getting this error. All I'm trying to do is to open Excel file and populate either repeating table or just a group of fields
    There are Null value, the order of fields is correct and table/group has a container. Here is what I have -

    myFields
       grpFormData
          grpDocData
             Details
                 field1
                 field2
                 field3
                 ........

    And here is the extract of my code

                                Dim domNav As XPathNavigator = MainDataSource.CreateNavigator()
                                Dim itemNav As XPathNavigator = domNav.SelectSingleNode("/my:myFields/my:grpFormData/my:grpDocData", NamespaceManager)
                                DeleteNil(itemNav)
                                Dim writer As XmlWriter
                                writer = itemNav.AppendChild()

                                writer.WriteStartElement("Details", "my")
                                writer.WriteElementString("field1", sheet1.Cells(i, 1).value.ToString)
                                writer.WriteElementString("field2", sheet1.Cells(i, 2).value.ToString)
                                writer.WriteElementString("field3", sheet1.Cells(i, 3).value.ToString)
                                writer.WriteEndElement()
                                writer.Close()  'Error

    What could that be?

     

     

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.