<?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 Re: JSL failing in version 19 but works in 17 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-failing-in-version-19-but-works-in-17/m-p/956695#M110127</link>
    <description>&lt;P&gt;Hi Nancy,&lt;/P&gt;
&lt;P&gt;The [](0,1) means row_to_update is an empty list, so there aren't any matching rows in the data table. Since Get Rows Where () returns a list, you might be better served with the different approach in the script below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here (1);

newContrib = New Table( "newContrib",
	Add Rows( 3 ),
	New Column( "request_id",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [263496, 263496, 263496] )
	),
	New Column( "line_no",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0, 0, 1] )
	)
);

row_to_update = newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0);
//row_to_update is [1,2]
row_to_update = newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263497 &amp;amp; :"line_no" == 0);
//row_to_update is empty: [](0, 1)
row_to_update = (newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0))[1];
//row_to_update is 1 

//a different approach:
rows_to_update = newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0);
if (n items(rows_to_update) &amp;gt; 0, row_to_update = rows_to_update[1]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Jul 2026 20:25:57 GMT</pubDate>
    <dc:creator>Jed_Campbell</dc:creator>
    <dc:date>2026-07-02T20:25:57Z</dc:date>
    <item>
      <title>JSL failing in version 19 but works in 17</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-failing-in-version-19-but-works-in-17/m-p/956661#M110123</link>
      <description>&lt;P&gt;I just upgraded to JMP 19 from JMP 17. I have a long and complicated routine that works well when I use it in JMP 17 but fails when I try it in 19. There may be more failures but the first one I am encountering is related to selecting rows to be modified to fix known errors in the data I imported. When debugging, I can see that the Get Rows Where command is returning an empty matrix. I confirmed that the targeted row is in the data table and I can force the program to select it by entering the criteria in the menu windows.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row_to_update = newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;The subsequent command fails to make a desired correction on that row because row_to_update returns this:&amp;nbsp; &amp;nbsp; &amp;nbsp;[](0, 1)&lt;BR /&gt;newContrib was defined earlier as a data table. When I hover over the variable name, the pop-up has the right table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the documentation, I tried modifying the line to use Where instead but failed identically.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row_to_update = newContrib[Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0)];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I could not find anything in release notes. I seem to have the right syntax according to the help manuals.&lt;BR /&gt;Could someone please explain what has changed that this no longer works and maybe how to fix it?&lt;/P&gt;
&lt;P&gt;Much appreciated!&lt;/P&gt;
&lt;P&gt;Nancy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 16:54:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-failing-in-version-19-but-works-in-17/m-p/956661#M110123</guid>
      <dc:creator>MarginalMouse87</dc:creator>
      <dc:date>2026-07-02T16:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: JSL failing in version 19 but works in 17</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-failing-in-version-19-but-works-in-17/m-p/956694#M110126</link>
      <description>&lt;P&gt;&amp;lt;&amp;lt; Get Rows Where does still work that way in JMP 19.&amp;nbsp; Your second command (using Where()) should change a bit.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt= Open( "$SAMPLE_DATA/Big Class.jmp" );
row_to_update = dt&amp;lt;&amp;lt; Get Rows Where( :"name" == "JANE" &amp;amp; :"age" == 12 );	//[3]
row_to_update2 = Where( dt, :name == "JANE" &amp;amp; :age == 12 );		//[3]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row_to_update = Where( newContrib, :request_id == 263496 &amp;amp; :line_no == 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As for what the issue might be?&amp;nbsp; Check to make sure the data types are correct.&amp;nbsp; Does JMP 19 pull in those columns as character, while JMP 17 did as numeric?&amp;nbsp; It's likely something simple like that, since the syntax for &amp;lt;&amp;lt; Get Rows Where has not changed.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 20:20:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-failing-in-version-19-but-works-in-17/m-p/956694#M110126</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-07-02T20:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: JSL failing in version 19 but works in 17</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-failing-in-version-19-but-works-in-17/m-p/956695#M110127</link>
      <description>&lt;P&gt;Hi Nancy,&lt;/P&gt;
&lt;P&gt;The [](0,1) means row_to_update is an empty list, so there aren't any matching rows in the data table. Since Get Rows Where () returns a list, you might be better served with the different approach in the script below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here (1);

newContrib = New Table( "newContrib",
	Add Rows( 3 ),
	New Column( "request_id",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [263496, 263496, 263496] )
	),
	New Column( "line_no",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0, 0, 1] )
	)
);

row_to_update = newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0);
//row_to_update is [1,2]
row_to_update = newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263497 &amp;amp; :"line_no" == 0);
//row_to_update is empty: [](0, 1)
row_to_update = (newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0))[1];
//row_to_update is 1 

//a different approach:
rows_to_update = newContrib &amp;lt;&amp;lt; Get Rows Where(:"request_id" == 263496 &amp;amp; :"line_no" == 0);
if (n items(rows_to_update) &amp;gt; 0, row_to_update = rows_to_update[1]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jul 2026 20:25:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-failing-in-version-19-but-works-in-17/m-p/956695#M110127</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2026-07-02T20:25:57Z</dc:date>
    </item>
  </channel>
</rss>

