You are viewing limited content. For full access, please sign in.

Question

Question

Forms Error - What is causing this?

asked on December 16, 2021

This error is being invoked on an email activity. Anyone know what is causing it and how to get around it?

An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: Error: UnexpectedError Date: 12/16/2021 8:29:12 AM (Central Standard Time) HTTP Status Code: 500 Business Process ID: 149 Instance ID: 68621 Business Process Name: Change Request Process Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An unexpected error has occurred. [LFF502-UnexpectedError] Inner exception: System.Xml.XPath.XPathException Message: 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.ParseLocationPath(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.ParseAdditiveExpr(AstNode qyInput) at MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput) at MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput) at MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput) at MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput) at MS.Internal.Xml.XPath.XPathParser.ParseExpresion(AstNode qyInput) at MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion) at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver) at System.Xml.XPath.XPathNavigator.Select(String xpath) at System.Xml.XmlNode.SelectNodes(String xpath) at Laserfiche.Forms.Routing.AttributeToken.ParseTokens(Boolean Encode, XmlDocument xmldoc, String inString, cf_users user, Boolean keepIfNoMatch, String TimeZone, Int32 pos, ConvertToLocalDateFormat ConvertToLocalDateFormat, Boolean translateTokens, Boolean escapeEncode, ICollection`1 fields, Boolean replaceNewlines, ParseTokenOptions tokenOption, Boolean retainCurrentUserToken, Boolean removeGroupSeparators, Int32 currentRow, Boolean useGregianCal, Int32 attempts) at Laserfiche.Forms.Routing.AttributeToken.ParseTokensEncoded(XmlDocument xmldoc, String inString, cf_users user, Boolean keepIfNoMatch, String TimeZone, Int32 pos, ConvertToLocalDateFormat ConvertToLocalDateFormat, Boolean translateTokens, Boolean escapeEncode, ICollection`1 fields, Boolean replaceNewlines, ParseTokenOptions tokenOption, Boolean retainCurrentUserToken, Boolean removeGroupSeparators, Int32 currentRow, Boolean useGregianCal) at Laserfiche.Forms.Routing.EmailService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus) at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)

0 0

Replies

replied on December 16, 2021

It is a pathing issue. All paths must lead to an End Event (they can share the same one), also all exclusive gateways need a default path defined. Between those 2 it should fix the problem, I don't think it is happening on the email activity itself, maybe after because there is no path to follow.

1 0
replied on December 16, 2021

Thanks for the input!
Quick update. I fixed this, but don't know why what I did fixed it haha.

All I did was take the Email Body text, copy it, paste it into a word document, go back to the email activity, go to the HTML code, delete all that, go back to the word doc, copy the text from there into the email activity, and it worked. So I basically just changed what the HTML tab looked like.

0 0
replied on December 21, 2021

There may be some broken variable added in the HTML pane, such as "<a href="https://maps.google.com/?q={/dataset/Single_Line"><u><font color="#0066cc">{/dataset/Single_Line</font></u></a>}", this is a known bug before Forms 10.4.4. It has been fixed since Forms 10.4.4 to not throw such error. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.