Choose Language Hide Translation Bar
Highlighted
caroljackson
Community Trekker

I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable Object in access or evaluation of 'Send' , dt << /*###*/save(. How do I fix this?

I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable Object in access or evaluation of 'Send' , dt <<  /*###*/save(.  How do I fix this?  Specific section of the script is:

"W:\OPS\Process Engineers\Metrics\JMP Scripts\JMP Scripts-Chambers\Build and Reclaim\131037 Build Data Split.jmp"

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User

Re: I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable Object in access or evaluation of 'Send' , dt << /*###*/save(. How do I fix this?

Try separating the assignment of dt and set name:

 

dt = Current Data Table();
dt << set name( "131037 Build Data Split" );
 
dt << save(
"W:\OPS\Process Engineers\Metrics\JMP Scripts\JMP Scripts-Chambers\Build and Reclaim\131037 Build Data Split.jmp"
);

 

View solution in original post

5 REPLIES 5
caroljackson
Community Trekker

Re: I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable Object in access or evaluation of 'Send' , dt << /*###*/save(. How do I fix this?

 

dt = Current Data Table() << set name( "131037 Build Data Split" );
 
dt <<  /*###*/save(
 
"W:\OPS\Process Engineers\Metrics\JMP Scripts\JMP Scripts-Chambers\Build and Reclaim\131037 Build Data Split.jmp"
 
) /*###*/;

 

 

0 Kudos
txnelson
Super User

Re: I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable Object in access or evaluation of 'Send' , dt << /*###*/save(. How do I fix this?

can you add the line:

 

     show(dt);

after your line:

 

     dt = Current Data table() << ..........

My guess is that you do not have a data table open, or the data table that JMP thinks is the current data table has been closed.

Jim
0 Kudos
pmroz
Super User

Re: I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable Object in access or evaluation of 'Send' , dt << /*###*/save(. How do I fix this?

Try separating the assignment of dt and set name:

 

dt = Current Data Table();
dt << set name( "131037 Build Data Split" );
 
dt << save(
"W:\OPS\Process Engineers\Metrics\JMP Scripts\JMP Scripts-Chambers\Build and Reclaim\131037 Build Data Split.jmp"
);

 

View solution in original post

Craige_Hales
Staff (Retired)

Re: I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable Object in access or evaluation of 'Send' , dt << /*###*/save(. How do I fix this?

Looks like the right answer to me.

Previously <<setname did not return a value, so the << operator returned the scriptable object (data table) for the assignment.  <<setname was changed to return the actual name assigned to the table, which might have a numeric suffix added to the name you requested if another table of the same name is open.

PMroz ​suggestion to use two steps will make dt hold the data table, then change the name and ignore the returned value.  Without doing that, dt winds up holding the character string name of the data table.  Character strings and numbers are not scriptable objects that take messages, but data tables are.

Sorry for the inconvenience - Craige

Craige
Jeff_Perkinson
Community Manager Community Manager
Moved:

Re: I recently upgraded to JMP 12 and my JMP 10.0.2 scripts get the error: Send Expects Scriptable O