<?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>Re: Customizing InfoPath error messages</title><link>https://www.infopathdev.com:443/forums/thread/59607.aspx</link><pubDate>Tue, 05 Oct 2010 06:46:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59607</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59607.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59607</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;Is there a way to extend the timeout period for webservice connections across the board? I have many many webservice calls in this form, say 15. And that is why for some of the more sophiscated calls, I can get a timeout during the heavy traffic period of the day. &lt;/p&gt;
&lt;p&gt;Regarding the &amp;quot;Rules cannot be applied&amp;quot; message, how do you stop rules from firing when there is an error and catch them according to the type of error? Is there a set of error codes?&lt;/p&gt;</description></item><item><title>Re: Customizing InfoPath error messages</title><link>https://www.infopathdev.com:443/forums/thread/59413.aspx</link><pubDate>Wed, 29 Sep 2010 09:18:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59413</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59413</wfw:commentRss><description>&lt;p&gt;Hi ZhenYuan,&lt;/p&gt;
&lt;p&gt;You can add code and catch the error and change the event, but that seems like a bad practice to me.&lt;/p&gt;
&lt;p&gt;Some other techniques:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;
&lt;div&gt;Change rules to stop firing on failure and/or add an alert with a different message so users know what happened.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Reduce the amount of data you are returning using DBXL&amp;#39;s QueryBuilder and cascading dropdowns - that way you improve responsiveness of the form.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Why not just ensure there is no error? To make the timeout larger:&lt;/li&gt;&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;"&gt;WebServiceAdapter2&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;"&gt; wsAdapter = (&lt;span&gt;WebServiceAdapter2&lt;/span&gt;)thisXDocument.DataAdapters[&lt;span&gt;&amp;quot;DataConnectionName&amp;quot;&lt;/span&gt;];&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;"&gt;wsAdapter.Timeout = 60;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="COLOR:green;"&gt;// Increase to 60 seconds - Default is 30&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;"&gt;wsAdapter.Query(); &lt;span style="COLOR:green;"&gt;// Issue the query&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Not sure if this will help&amp;nbsp;a whole lot, but just thought I&amp;#39;d respond. &lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Customizing InfoPath error messages</title><link>https://www.infopathdev.com:443/forums/thread/59406.aspx</link><pubDate>Wed, 29 Sep 2010 03:52:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59406</guid><dc:creator>ZhenYuan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59406</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just wondering if it is possible to customize InfoPath error messages? The standard message, &amp;quot;Some rules were not applied&amp;quot;, isn&amp;#39;t very intuitive and the detailed message can be rather generic and confusing to users.&lt;/p&gt;
&lt;p&gt;Is it possible to change this message somewhere? For example, if it is a timeout issue, just inform users that it is a timeout instead of&amp;nbsp; &amp;quot;Some rules were not applied&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>