<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Email Submit form &amp; conditional formatting not working together ?</title><link>https://www.infopathdev.com:443/forums/thread/52711.aspx</link><pubDate>Mon, 15 Mar 2010 15:54:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52711</guid><dc:creator>cetims</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52711</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Customer ask me to add something like a confirm message&amp;nbsp;(visible or not dependind some conditions)&amp;nbsp;in a &lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;browser forms using InfoPath Forms Services.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;My idea&amp;nbsp;was&amp;nbsp;simply to use an section with conditional formatting &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;&amp;nbsp;This&amp;nbsp;form use code behind as submit options. 2 datas connections are using to submit to a sharepoint library and email&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;and when i add a section with conditionnal formatting i receive an error on the submit&amp;nbsp;event :&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;on&amp;nbsp;call to this method&amp;nbsp;&lt;font color="#000080" size="2"&gt;EmailSubmitConnection.Execute();&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;
&lt;div class="ErrorPageDetailsText"&gt;&lt;strong&gt;Extension object &amp;#39;http://schemas.microsoft.com/office/infopath/2003/xslt/Date&amp;#39; does not contain a matching &amp;#39;adddays&amp;#39; method that has 2 parameter(s). &lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;System.Xml.Xsl.XslTransformException: Extension object &amp;#39;http://schemas.microsoft.com/office/infopath/2003/xslt/Date&amp;#39; does not contain a matching &amp;#39;adddays&amp;#39; method that has 2 parameter(s). &lt;br /&gt;at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind() &lt;br /&gt;at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags) &lt;br /&gt;at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) &lt;br /&gt;at &amp;lt;xsl:template match=&amp;quot;my:VIPSection&amp;quot; mode=&amp;quot;_2&amp;quot;&amp;gt;(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) &lt;br /&gt;at &amp;lt;xsl:template match=&amp;quot;my:myFields&amp;quot;&amp;gt;(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) &lt;br /&gt;at &amp;lt;xsl:apply-templates&amp;gt;(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator ) &lt;br /&gt;at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) &lt;br /&gt;at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results) &lt;br /&gt;at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.Util.XslTransform.Transform(IXPathNavigable input, XsltArgumentList argumentList, TextWriter output) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterEmail.GetViewHtml(XmlDocument input, String viewName, XsltContext xsltContext, Solution solution, Boolean cleanUpFormatting, String intro, String introSubmittedBy, ImageAttachmentHelper imageAttachmentHelper) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterEmail.Execute(XPathNavigator input, String to, String cc, String bcc, String subject, String intro, String attachmentFileName, String viewName, Boolean sendAsInfoMail, EmailAttachmentType emailAttachmentType, XsltContext xsltContext, String xsnUrl) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataAdapterEmail.ExecuteInternal(XPathNavigator input) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataAdapterEmail.Execute() &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.EmailSubmitConnectionHost.&amp;lt;Execute&amp;gt;b__0() &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.ExecuteOMCallWithExceptions(OMCall d, ExceptionFilter exceptionFilter)&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;An entry has been added to the Windows event log of the server. &lt;/div&gt;
&lt;div&gt;&lt;span class="ErrorPageEmphasisText"&gt;Log ID:&lt;/span&gt;&lt;span&gt;5337&lt;/span&gt;&lt;/div&gt;
&lt;hr /&gt;
An error occurred while the form was being submitted. &lt;br /&gt;The submit event handler returned a value indicating that the submit failed.&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;The submit event code :&lt;/div&gt;
&lt;p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;&lt;font color="#000080" size="2"&gt;public void FormEvents_Submit(object sender, SubmitEventArgs e)&lt;br /&gt;{&lt;br /&gt;FileSubmitConnection submitConnection = (FileSubmitConnection)this.DataConnections[&amp;quot;MainSubmit&amp;quot;];&lt;br /&gt;submitConnection.Execute(); //&amp;lt;= this working fine&lt;br /&gt;&lt;br /&gt;EmailSubmitConnection emailConncetion = (EmailSubmitConnection)this.DataConnections[&amp;quot;EmailTheForm&amp;quot;];&lt;br /&gt;&lt;strong&gt;emailConncetion.Execute(); //&amp;lt;= this line cause the errors&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;// If the submit operation is successful, set&lt;br /&gt;e.CancelableArgs.Cancel = false;&lt;br /&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The conditional formatting&amp;nbsp;on the section is simply a condition like &amp;quot;if the field TD is greater than today + 3 days then the section is not visible&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;TD &amp;gt; adddays(today();3)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have try&amp;nbsp;other conditions but same kind of error, cannot find the method ....&lt;/p&gt;
&lt;p&gt;This occurs only with web forms when submit is perform by code.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really desesperate with this issue, 1 week to search after a solution ....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please help.&lt;/p&gt;
&lt;p&gt;Thx in advance&lt;/p&gt;
&lt;p&gt;Cédric.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Email Submit form &amp; conditional formatting not working together ?</title><link>https://www.infopathdev.com:443/forums/thread/52710.aspx</link><pubDate>Mon, 15 Mar 2010 15:54:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52710</guid><dc:creator>cetims</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52710.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=52710</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Customer ask me to add something like a confirm message&amp;nbsp;(visible or not dependind some conditions)&amp;nbsp;in a &lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;browser forms using InfoPath Forms Services.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;My idea&amp;nbsp;was&amp;nbsp;simply to use an section with conditional formatting &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;&amp;nbsp;This&amp;nbsp;form use code behind as submit options. 2 datas connections are using to submit to a sharepoint library and email&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;and when i add a section with conditionnal formatting i receive an error on the submit&amp;nbsp;event :&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;on this &lt;font color="#000080" size="2"&gt;EmailSubmitConnection.Execute();&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;
&lt;div class="ErrorPageDetailsText"&gt;&lt;strong&gt;Extension object &amp;#39;http://schemas.microsoft.com/office/infopath/2003/xslt/Date&amp;#39; does not contain a matching &amp;#39;adddays&amp;#39; method that has 2 parameter(s). &lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;System.Xml.Xsl.XslTransformException: Extension object &amp;#39;http://schemas.microsoft.com/office/infopath/2003/xslt/Date&amp;#39; does not contain a matching &amp;#39;adddays&amp;#39; method that has 2 parameter(s). &lt;br /&gt;at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind() &lt;br /&gt;at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags) &lt;br /&gt;at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) &lt;br /&gt;at &amp;lt;xsl:template match=&amp;quot;my:VIPSection&amp;quot; mode=&amp;quot;_2&amp;quot;&amp;gt;(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) &lt;br /&gt;at &amp;lt;xsl:template match=&amp;quot;my:myFields&amp;quot;&amp;gt;(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) &lt;br /&gt;at &amp;lt;xsl:apply-templates&amp;gt;(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator ) &lt;br /&gt;at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) &lt;br /&gt;at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) &lt;br /&gt;at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results) &lt;br /&gt;at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.Util.XslTransform.Transform(IXPathNavigable input, XsltArgumentList argumentList, TextWriter output) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterEmail.GetViewHtml(XmlDocument input, String viewName, XsltContext xsltContext, Solution solution, Boolean cleanUpFormatting, String intro, String introSubmittedBy, ImageAttachmentHelper imageAttachmentHelper) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterEmail.Execute(XPathNavigator input, String to, String cc, String bcc, String subject, String intro, String attachmentFileName, String viewName, Boolean sendAsInfoMail, EmailAttachmentType emailAttachmentType, XsltContext xsltContext, String xsnUrl) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataAdapterEmail.ExecuteInternal(XPathNavigator input) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataAdapterEmail.Execute() &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.EmailSubmitConnectionHost.&amp;lt;Execute&amp;gt;b__0() &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.ExecuteOMCallWithExceptions(OMCall d, ExceptionFilter exceptionFilter)&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;An entry has been added to the Windows event log of the server. &lt;/div&gt;
&lt;div&gt;&lt;span class="ErrorPageEmphasisText"&gt;Log ID:&lt;/span&gt;&lt;span&gt;5337&lt;/span&gt;&lt;/div&gt;
&lt;hr /&gt;
An error occurred while the form was being submitted. &lt;br /&gt;The submit event handler returned a value indicating that the submit failed.&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ErrorPageDetailsText"&gt;The submit event code :&lt;/div&gt;
&lt;p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;&lt;font color="#000080" size="2"&gt;public void FormEvents_Submit(object sender, SubmitEventArgs e)&lt;br /&gt;{&lt;br /&gt;FileSubmitConnection submitConnection = (FileSubmitConnection)this.DataConnections[&amp;quot;MainSubmit&amp;quot;];&lt;br /&gt;submitConnection.Execute(); //&amp;lt;= this working fine&lt;br /&gt;&lt;br /&gt;EmailSubmitConnection emailConncetion = (EmailSubmitConnection)this.DataConnections[&amp;quot;EmailTheForm&amp;quot;];&lt;br /&gt;&lt;strong&gt;emailConncetion.Execute(); //&amp;lt;= this line cause the errors&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;// If the submit operation is successful, set&lt;br /&gt;e.CancelableArgs.Cancel = false;&lt;br /&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The conditional formatting&amp;nbsp;on the section is simply a condition like &amp;quot;if the field TD is greater than today + 3 days then the section is not visible&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;TD &amp;gt; adddays(today();3)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have try&amp;nbsp;other conditions but same kind of error, cannot find the method ....&lt;/p&gt;
&lt;p&gt;This occurs only with web forms when submit is perform by code.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really desesperate with this issue, 1 week to search after a solution ....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please help.&lt;/p&gt;
&lt;p&gt;Thx in advance&lt;/p&gt;
&lt;p&gt;Cédric.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>