cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

When a JSL code block crashes, is it possible to post a dialog box with a simple message?

Hello,

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"

 

Here is the JSL code block

rp = Run Program( executable( python_executable ), Options( {path_python_file, path_working_folder, path_datalog} ), readfunction( "text" ) );

 

When I execute the task from JSL I get the follwing error message.

 

image.png

 

is it possible to replace this error message with a simple error message such as " zip file import error"?

Thanks,

Shafi

1 REPLY 1
jthi
Super User

Re: When a JSL code block crashes, is it possible to post a dialog box with a simple message?

You should be able to do it using Try(). This is also a good read regarding Throws and error catching in JMP  Scripting Guide > Programming Methods > Advanced Programming Concepts > Throw and Catch Exceptions 

-Jarmo

Recommended Articles