<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Capture Error Message Text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33911#M20086</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2016 20:15:28 GMT</pubDate>
    <dc:creator>robot</dc:creator>
    <dc:date>2016-12-23T20:15:28Z</dc:date>
    <item>
      <title>Capture Error Message Text</title>
      <link>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33908#M20083</link>
      <description>&lt;P&gt;I am using JMP12 to pull data from ODBC. &amp;nbsp;Most of the time this works great, but sometimes an error is thrown&amp;nbsp;and JMP will return an error message to the log. &amp;nbsp;Is there a way to capture&amp;nbsp;the error text to display in a message box or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example error message is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"[Microsoft][ODBC SQL Server Driver][SQL Server]The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 19:14:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33908#M20083</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2016-12-23T19:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Error Message Text</title>
      <link>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33909#M20084</link>
      <description>&lt;P&gt;If you know you are looking for an ODBC error like this you can search the log by using the getlog() function in your script, &lt;EM&gt;e.g.&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;log=getlog();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=1,i&amp;lt;=nitems(log),i++,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(contains(log[i],"[Microsoft]")&amp;gt;0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;newwindow("Error",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;&amp;lt;modal,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vlistbox(align("center"),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;textbox(log[i]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;buttonbox("OK")))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 19:41:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33909#M20084</guid>
      <dc:creator>mpl34</dc:creator>
      <dc:date>2016-12-23T19:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Error Message Text</title>
      <link>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33911#M20086</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 20:15:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33911#M20086</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2016-12-23T20:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Error Message Text</title>
      <link>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33912#M20087</link>
      <description>&lt;P&gt;If you run your database call inside of a Log Capture, you won't have to run through the entire log list.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;logtxt = LogCapture(
     databaseCall()
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 21:40:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capture-Error-Message-Text/m-p/33912#M20087</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2016-12-23T21:40:02Z</dc:date>
    </item>
  </channel>
</rss>

