Submitting to a Sharepoint Library

S

sumeet

If I use Infopath client to submit the form, it is saved fine.
If I use Browser to submit the same form I get the following error:

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.NumberFunctions.SetXsltContext(XsltContext context)
at MS.Internal.Xml.XPath.NumericExpr.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)
 
S

sumeet

Found the link to exact problem and the soluition:
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3183

Sumeet

sumeet said:
If I use Infopath client to submit the form, it is saved fine.
If I use Browser to submit the same form I get the following error:

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.NumberFunctions.SetXsltContext(XsltContext context)
at MS.Internal.Xml.XPath.NumericExpr.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)
 

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