Hello,
I have issue to automate publish on JMP 16. I create "MyConnection" as shown below

I have a JMP Query with a Post-Query script which do SPC analysis and finish by 1) printing PowerPoint (to ensure everything went well) and 2) publishing in JMP Live 16 (should but do not).
Snapshot of the script:
....
// Save graphs as PowerPoint
graph1 << Save Presentation( "C:\Users\fraemr\OneDrive - SAS\Attachments\11111111 Data\DataBase\graph1.pptx" );
graph2 << Save Presentation( "C:\Users\fraemr\OneDrive - SAS\Attachments\11111111 Data\DataBase\graph2.pptx" );
graph3 << Save Presentation( "C:\Users\fraemr\OneDrive - SAS\Attachments\11111111 Data\DataBase\graph3.pptx" );
// Create the web report element to hold the graphs
webrpt = New Web Report();
webrpt << Add Reports( {graph1,graph2,graph3},Title( "SPC_Tablet_May" ) );
jmplive = New JMP Live( Connection( "MyConnection" ),Prompt( If Needed ) );
jmpliveresult = jmplive << Publish( webrpt, API Key("9l0ZWKL0VDqlzFvht8dNn") );
report = jmpliveresult << As Scriptable();
dt2<< Clean up windows
Close All (data tables, nosave);
<< Run
What is wrong ?
Emmanuel
Hi Emmanuel,
For a start, remove the API key in the Publish. That is no longer used that way. That is why we associate the API Key with the Live Connection, so you don't have to enter that.
I might also put in a wait(0) after that Publish to give it time to process.
Brian
Hello Brian,
it still doesn't work. I previously tested w/o API key and re-tested with wait (I tried wait(0) and wait (120)).
I'm wondering if it is a connection issue or authorization rather than code. I sent some data and script to colleagues so they will try and we'll see if it is connection / authorization. I will let you know.
Thank you
Emmanuel
This did not work for me either. The script failed to publish to JMP Live using Emmanuel's script. I received the following error message:
