Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Wilson 100 posts 377 karma points
    Oct 21, 2015 @ 14:45
    Chris Wilson
    0

    Fatal XPath Error on Opening Form Editor

    Hello,

    We are currently experiencing an issue whereby when we attempt to open a single specific form, we receive an error message and the following log is created:

    ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 52] An unhandled exception occurred
    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Xml.XPath.XPathException: Expression must evaluate to a node-set.
       at MS.Internal.Xml.XPath.XPathParser.ParseNodeTest(AstNode qyInput, AxisType axisType, XPathNodeType nodeType)
       at MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseExpresion(AstNode qyInput)
       at MS.Internal.Xml.XPath.QueryBuilder.Build(String query, Boolean allowVar, Boolean allowKey)
       at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
       at System.Xml.XPath.XPathNavigator.Compile(String xpath)
       at umbraco.uQuery.GetNodesByXPath(String xpath)
       at Umbraco.Forms.Core.Providers.Prevalues.XPath.GetPreValues(Field field)
       at Umbraco.Forms.UI.Usercontrols.EditForm.RenderFieldPreview(Field f)
    

    It goes on for another 35 lines of stack trace but the XPath, Umbraco Forms and GetPreValues calls seemed pertinent.

    As this issue has arrived out of the blue I'm assuming that one of the prevalues used specifically on that form is erroring and causing the whole editor to error, and that this may be resolved if I can resolve the issue with the prevalue - however with such a brick wall of an error this is difficult to diagnose.

    My next task is to iterate through the database tables and look for the issue, however any advice from others who have experienced this (or similar) would be helpful!

    The Contour version is 3.0.21 on Umbraco 7.1.4 - a dev upgrade to the latest version of Contour made no difference.

    Cheers!

    /Chris

Please Sign in or register to post replies

Write your reply to:

Draft