Trouble Submiting InfoPath 2007 Form - InfoPath Dev
in

InfoPath Dev

Trouble Submiting InfoPath 2007 Form

Last post 08-29-2006 12:08 AM by SubbuZ. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-23-2006 12:57 AM

    • SubbuZ
    • Not Ranked
    • Joined on 08-23-2006
    • India
    • Posts 5

    Trouble Submiting InfoPath 2007 Form

    Hi,
    I have a simple InfoPath form, which is web compatible. The form has a
    'Submit' button which sets value for couple of fields and triggers the
    'Submit' action using rules.

    I've published the form to the SharePoint 2007 and uploaded the form using
    Central Administration and Activated the form to a site collection. The
    uploaded form templated is associated to a form library in the site
    collection.

    When I click 'Submit' in preview mode, the form is getting published to the
    designated form library in the SharePoint server. But I could not open the
    form from the Form library and I get the following error:

    <<
    The following location is not accessible, because it is in a different site
    collection:
    file:///C:\Documents%20and%20Settings\User1\Local%20Settings\Application%20Data\Microsoft\InfoPath\Designer2\4e00dbf7cd3440eb\manifest.xsf
    >>

    When I try to open the form using web browser, the form is properly rendered to the browser. After filling the form when I click on 'Submit' I get a
    different error. The error is as follows:

    <<
    XsltContext is needed for this query because of an unknown function.

    System.Xml.XPath.XPathException: XsltContext is needed for this query
    because of an unknown function.
    at
    MS.Internal.Xml.XPath.CompiledXpathExpr.UndefinedXsltContext.ResolveFunction(String prefix, String name, XPathResultType[] ArgTypes)
    at MS.Internal.Xml.XPath.FunctionQuery.SetXsltContext(XsltContext context)
    at MS.Internal.Xml.XPath.StringFunctions.SetXsltContext(XsltContext context)
    at MS.Internal.Xml.XPath.StringFunctions.SetXsltContext(XsltContext context)
    at MS.Internal.Xml.XPath.StringFunctions.SetXsltContext(XsltContext context)
    at MS.Internal.Xml.XPath.CompiledXpathExpr.SetContext(XmlNamespaceManager
    nsManager)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.XPathTypedValueHost.EvaluateXPath(String xPath, Boolean selectSingleNode, Boolean& xPathEmptyResult)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.XPathTypedValueHost.EvaluateXPath(String xPath, Boolean selectSingleNode)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.XPathTypedValueHost.EvaluateSingleNode()
    at
    Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterSharePointDav.Execute(XPathNavigator
    input, Uri folderUri, Boolean allowOverwrite, XPathTypedValue fileNameXpath,
    Boolean ensureXMLExtension, Document document, DataAdapterCredentials
    credentials, Boolean useDcl)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.DataAdapterSharePointDav.Execute(XPathNavigator input)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.DataAdapterSharePointDav.Execute()
    at
    Microsoft.Office.InfoPath.Server.SolutionLifetime.RuleAction.EvaluateExpression(Document document, XPathNavigator currentTarget)
    at
    Microsoft.Office.InfoPath.Server.SolutionLifetime.RulesRuleSet.<>c__DisplayClass7.<EvaluateExpression>b__4()
    at
    Microsoft.Office.InfoPath.Server.SolutionLifetime.RulesRuleSet.EvaluateExpression(Document document, XPathNavigator targetNavigator)
    at
    Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonFormCode.<>c__DisplayClass2.<Click>b__0()
    at
    Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonFormCode.Click(Document document, XPathNavigator container)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.EventClick.Play(Document
    document, BindingServices bindingServices, EventLogProcessor
    eventLogProcessor)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.Event.PlayEvent(Document
    document, BindingServices bindingServices, EventLogProcessor
    eventLogProcessor)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.EventLogProcessor.<>c__DisplayClass1.<ExecuteLog>b__0()
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.EventLogProcessor.ExecuteLog(Int32 expectedEventLogID)
    at
    Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.PlayEventLog(EventLog eventLog, Boolean partialPostback)
    >>


    Please help.

    Thanks,
    Subbu
  • 08-23-2006 01:26 AM In reply to

    Re: Trouble Submiting InfoPath 2007 Form

    Hi Subbu,
    Looks like a good bug. Which build of InfoPath Forms Server are you using? Is this the beta2?
    Patrick Halstead
    Project Manager at Qdabra
  • 08-23-2006 01:58 AM In reply to

    • SubbuZ
    • Not Ranked
    • Joined on 08-23-2006
    • India
    • Posts 5

    Re: Trouble Submiting InfoPath 2007 Form

    Hi Patrick,
    Thank you for the response. Here is the version details:

    IE: 6.0.3790.1830
    InfoPath Professional Plus 2007: 12.0.4017.1004
    InfoPath Server Version: 12.0.4017.1003

    I am planning to run the web form in IE 7.0 tomorrow and will post the status of the test.

    Thanks again,
    Subbu
  • 08-29-2006 12:08 AM In reply to

    • SubbuZ
    • Not Ranked
    • Joined on 08-23-2006
    • India
    • Posts 5

    Re: Trouble Submiting InfoPath 2007 Form

    Hi,
    Atlast found the culprit. The problem is use of formula in the File Name property in the Data Connection used for submitting data to SharePoint form library. The file name formula used 'now' and 'concat' functions to create a unique file name to be used for saving the file.

    The work around is to use a field and populate the field with the file name. Then use the field in the File Name property of the data connection. The file name field can be populated using Rules of the button.

    Thank you all for showing interest in this post.

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