<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: "There was an error in the custom validation code." Can't open form at all</title><link>https://www.infopathdev.com:443/forums/thread/106390.aspx</link><pubDate>Fri, 29 Apr 2016 14:42:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106390</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=106390</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Actually, the &amp;quot;error in the custom validation &lt;em&gt;code&lt;/em&gt;&amp;quot; makes me wonder if there is actual code in the form template. But &lt;a href="https://msdn.microsoft.com/en-us/library/microsoft.office.infopath.xmlvalidatingeventargs(v=office.11).aspx"&gt;this&lt;/a&gt; says that the XML is read only during the validating event.... so I wouldn&amp;#39;t think the code could change anything.&lt;/p&gt;</description></item><item><title>"There was an error in the custom validation code." Can't open form at all</title><link>https://www.infopathdev.com:443/forums/thread/106067.aspx</link><pubDate>Thu, 07 Apr 2016 20:19:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106067</guid><dc:creator>iAmMortos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=106067</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m receiving an error I&amp;#39;m unfamiliar with when attempting to open a form: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;InfoPath cannot open the following file: [file name]. There wan an error in the custom validation code. &lt;br /&gt;[Show Details] -&amp;gt; The data in this control has been digitally signed and cannot be changed.&lt;/p&gt;&lt;p&gt;As you can see, no useful specifics are given, and once the &amp;quot;OK&amp;quot; button is clicked, it just quits.&lt;/p&gt;&lt;p&gt;I &lt;i&gt;am&lt;/i&gt; familiar with seeing an error such &amp;quot;Some rules were not applied. [Show Details] -&amp;gt; The data in this control has been digitally signed and cannot be changed,&amp;quot; but &lt;i&gt;this &lt;/i&gt;error does not prevent the form from being opened.&lt;br /&gt;I recreated the latter error by trying to assign a new value to a digitally signed field.&lt;/p&gt;&lt;p&gt;What is different about the first error that would cause it to close InfoPath altogether?&lt;/p&gt;&lt;p&gt;The form template that generated this form contains no custom code, and nothing significant has changed lately. What kind of error prevents you from opening the form entirely?&lt;/p&gt;&lt;p&gt;This makes it sound as though there&amp;#39;s a validation on a form field that&amp;#39;s attempting to change its value after it&amp;#39;s already been digitally signed, but validations don&amp;#39;t actually change content, they just test values and mark the field, right?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>