<?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 When a JSL  code block crashes, is it possible to post a dialog box with a simple message? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/When-a-JSL-code-block-crashes-is-it-possible-to-post-a-dialog/m-p/693661#M87903</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to run a python script using JMP's Run Porgram to read a zipped file and parse the data. Occationally the Zip file has issues and python would through out an error message that " File is not a zip file"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the JSL code block&lt;/P&gt;&lt;P&gt;rp = Run Program( executable( python_executable ), Options( {path_python_file, path_working_folder, path_datalog} ), readfunction( "text" ) );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I execute the task from JSL I get the follwing error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 563px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58269i7508C6654CFDF964/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to replace this error message with a simple error message such as " zip file import error"?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shafi&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 17:24:13 GMT</pubDate>
    <dc:creator>shafi-arifuzzam</dc:creator>
    <dc:date>2023-11-02T17:24:13Z</dc:date>
    <item>
      <title>When a JSL  code block crashes, is it possible to post a dialog box with a simple message?</title>
      <link>https://community.jmp.com/t5/Discussions/When-a-JSL-code-block-crashes-is-it-possible-to-post-a-dialog/m-p/693661#M87903</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to run a python script using JMP's Run Porgram to read a zipped file and parse the data. Occationally the Zip file has issues and python would through out an error message that " File is not a zip file"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the JSL code block&lt;/P&gt;&lt;P&gt;rp = Run Program( executable( python_executable ), Options( {path_python_file, path_working_folder, path_datalog} ), readfunction( "text" ) );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I execute the task from JSL I get the follwing error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 563px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58269i7508C6654CFDF964/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to replace this error message with a simple error message such as " zip file import error"?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shafi&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 17:24:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-a-JSL-code-block-crashes-is-it-possible-to-post-a-dialog/m-p/693661#M87903</guid>
      <dc:creator>shafi-arifuzzam</dc:creator>
      <dc:date>2023-11-02T17:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: When a JSL  code block crashes, is it possible to post a dialog box with a simple message?</title>
      <link>https://community.jmp.com/t5/Discussions/When-a-JSL-code-block-crashes-is-it-possible-to-post-a-dialog/m-p/693677#M87905</link>
      <description>&lt;P&gt;You should be able to do it using &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/programming-functions.shtml?os=win&amp;amp;source=application#ww5022792" target="_blank" rel="noopener"&gt;Try()&lt;/A&gt;. This is also a good read regarding Throws and error catching in JMP&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/throw-and-catch-exceptions.shtml#" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Programming Methods &amp;gt; Advanced Programming Concepts &amp;gt; Throw and Catch Exceptions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 17:48:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-a-JSL-code-block-crashes-is-it-possible-to-post-a-dialog/m-p/693677#M87905</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-02T17:48:52Z</dc:date>
    </item>
  </channel>
</rss>

