BookmarkSubscribeRSS Feed
caroljackson

Community Trekker

Joined:

Jun 19, 2015

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"

1 ACCEPTED SOLUTION

Accepted Solutions
pmroz

Super User

Joined:

Jun 23, 2011

Solution

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"
);

 

5 REPLIES
caroljackson

Community Trekker

Joined:

Jun 19, 2015

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"
 
) /*###*/;

 

 

txnelson

Super User

Joined:

Jun 22, 2012

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
pmroz

Super User

Joined:

Jun 23, 2011

Solution

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"
);

 

Craige_Hales

Staff

Joined:

Mar 21, 2013

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

Joined:

Jun 23, 2011

Moved:

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