<?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: JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/484916#M72904</link>
    <description>&lt;P&gt;Interesting, for my specific usage I was able to leave Current Data Table() empty to successfully run the command with the desired output. My guess is what if the table you intend to run this script on is on top, that you should be able to leave the argument empty.&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 21:24:29 GMT</pubDate>
    <dc:creator>StarfruitBob</dc:creator>
    <dc:date>2022-05-06T21:24:29Z</dc:date>
    <item>
      <title>JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1)</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480329#M72475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have encountered this problem when I run a old script on JMP 15. Anyone can help me to solve this problem? Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PearsonEagle535_0-1650386562495.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41880i07876BD08B414B37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PearsonEagle535_0-1650386562495.png" alt="PearsonEagle535_0-1650386562495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:47:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480329#M72475</guid>
      <dc:creator>PearsonEagle535</dc:creator>
      <dc:date>2023-06-10T23:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1)</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480373#M72478</link>
      <description>&lt;P&gt;Thid error occurs when the argument to the function is blank.&amp;nbsp; The example below will throw that error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;r="";
current data table(r);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2022 17:08:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480373#M72478</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-19T17:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1)</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480376#M72479</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;
&lt;P&gt;Could you share the portion of the script that triggers the error?&lt;/P&gt;
&lt;P&gt;One obvious but unlikely issue might be that you do not have any table opened when you invoke the Current Data Table function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you want to define a specific table, use the Data Table ("name") function instead of Current Data Table.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 17:11:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480376#M72479</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2022-04-19T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1)</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480469#M72488</link>
      <description>&lt;P&gt;You may want to activate "Show embedded Log" in the Script Window (by right clicking, or setting this in the preferences.&lt;/P&gt;
&lt;P&gt;Then the Log tells you at which Line this error occurs.&lt;/P&gt;
&lt;P&gt;You can check the prerequisites (if variables are populated with the expected values) by hovering over the variable name, it will show the value. The snippet I borrowed from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;- Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georg_0-1650406306518.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41890i6F86937F78163279/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1650406306518.png" alt="Georg_0-1650406306518.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 22:15:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/480469#M72488</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-04-19T22:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1)</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/484915#M72903</link>
      <description>&lt;P&gt;I also get this error.&amp;nbsp; The log shows:&lt;BR /&gt;******&lt;BR /&gt;Argument must contain data table reference in access or evaluation of 'Current Data Table' , Current Data Table/*###*/(dt1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at line 1 in Script for MyData&lt;/P&gt;&lt;P&gt;******&lt;/P&gt;&lt;P&gt;Line 1 in my script is:&lt;/P&gt;&lt;P&gt;Current Data Table(dt1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running the script on a table that's open.&amp;nbsp; It's the only data table open.&amp;nbsp; Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 21:06:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/484915#M72903</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2022-05-06T21:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1)</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/484916#M72904</link>
      <description>&lt;P&gt;Interesting, for my specific usage I was able to leave Current Data Table() empty to successfully run the command with the desired output. My guess is what if the table you intend to run this script on is on top, that you should be able to leave the argument empty.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 21:24:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/484916#M72904</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2022-05-06T21:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: JMP alert: Argument must contain data table reference in access or evaluation of 'current data table', current data table/*###*/(dt1)</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/484940#M72907</link>
      <description>&lt;P&gt;When you run Current Data Table() with no argument, it returns a reference to the current table.&amp;nbsp; When called with an argument, it should be a reference to an open data table.&amp;nbsp; Here is another example that will give the error in question, on the second call to Current Data Table(dt1):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;dt1 = Open("$SAMPLE_DATA/Big Class.jmp");&lt;BR /&gt;Show(Type(dt1));            // "Table"&lt;BR /&gt;Show(IsEmpty(dt1));         // 0&lt;BR /&gt;Current Data Table(dt1);    // ok&lt;BR /&gt;Close(dt1);&lt;BR /&gt;Show(Type(dt1));            // "Table"&lt;BR /&gt;Show(IsEmpty(dt1));         // 1&lt;BR /&gt;Current Data Table(dt1);    // gives error&lt;/PRE&gt;
&lt;P&gt;As mentioned by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9474"&gt;@Georg&lt;/a&gt;&amp;nbsp;above, after running the script you can hover over variables in the script to get some information, or use the embedded log to query the values.&amp;nbsp; If you highlight the &lt;EM&gt;dt1&lt;/EM&gt; variable and evaluate (run) the script, the log will display:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "UnknownTable" )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the example above, I also use IsEmpty(dt1) to show one way that you can detect with JSL that the variable refers to an object that no longer exists.&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2022 02:32:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-alert-Argument-must-contain-data-table-reference-in-access/m-p/484940#M72907</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2022-05-07T02:32:14Z</dc:date>
    </item>
  </channel>
</rss>

