Secondary Data source problem - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Secondary Data source problem

Last post 11-27-2006 05:34 AM by Stavi. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-27-2006 01:42 AM

    Secondary Data source problem

    My form contain 2 Data source (secondary) that recive data from web service (names "DS1" and "DS2")

    When i look (In tool menu) in Data source list - on "DS1" I see under "myFields" -> "queryFields"/"dataFields" -> "s0...." (the name space is "s0").

    When i look (In tool menu) in Data source list - on "DS2" I see under "myFields" -> "queryFields"/"dataFields" -> "tns...." (the name space is "tns").

    1) why on of them is "s0" and one is "tns"?

    2) My form contain 2 Dropdown list ("List1" and "List2")
    "List1" values are Look up from the Data connection "DS1"
    "List2" values are Look up from the Data connection "DS2"

    I get this error when I preview the form :

    "InfoPath cannot open the following view: View A
    The following view file is not valid: view1.xsl
    The .xsl file is not valid XSL.
    Reference to undeclared namespace prefix: 's0'. "

    (I get this error only for "List1")

    By the way: the form's code contain this defenision

    '<namespacesDefinition>

    XDocument.DOM.setProperty "SelectionNamespaces", "xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" xmlns:tns=""http://tempuri.org/"" xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-06-20T09:09:29"" xmlns:xd=""http://schemas.microsoft.com/office/infopath/2003"""

    '</namespacesDefinition>

    What is the problem? how to fix it?

  • 11-27-2006 04:12 AM In reply to

    • Stavi
    • Top 100 Contributor
    • Joined on 12-13-2005
    • Posts 95

    Re: Secondary Data source problem

    To investigate the data connections I would create a new form, then recreate your 2 data connections and see if they turn out the same way

    I dont think the error message you got is anything to do with your connections, can you copy and paste the view into a new view (you would have to reapply rules) and delete bad one

    I have had views go bad on me before and only thing I could do was delete them
  • 11-27-2006 04:14 AM In reply to

    • uma
    • Top 500 Contributor
    • Joined on 12-23-2005
    • Posts 35

    Re: Secondary Data source problem

    I think, the problem is because of un declering the namespace "s0" for the "DS1" data source.
    To fix that, declare the "s0" name space also under the <namespacesDefination> using setProperty method.



  • 11-27-2006 05:03 AM In reply to

    Re: Secondary Data source problem

    Hi Stavi!

    I did what you told me. Both Data connection namespace is "s0" ad it's work well!!!

    Only on my original for, its dont work
  • 11-27-2006 05:34 AM In reply to

    • Stavi
    • Top 100 Contributor
    • Joined on 12-13-2005
    • Posts 95

    Re: Secondary Data source problem

    In that case can you delete and recreate the suspect connection in your exisiting form?

    Only problem with that is the fact that you will have to fix all your rules that used that connection

    Back everthing up before trying something like this ;)
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.