<?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: tMongoDBRow - still using eval ??? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312850#M83760</link>
    <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;OK, this helps, especially as the link I referenced above says to&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif" color="#0000FF"&gt;&lt;FONT size="2"&gt;&lt;U&gt;Uncheck&lt;/U&gt; the 'Execute command' box and type in the command as below&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;so that's wrong.&amp;nbsp; I need to check Execute Command in order to use runCommand.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Can you provide a functioning example of a command (proper syntax)?&amp;nbsp; As&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;"db.oldname.renameCollection('newName')"&lt;/PRE&gt;&lt;P&gt;Given in the old answer... results in "no such command"&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 15:35:42 GMT</pubDate>
    <dc:creator>bglaplante</dc:creator>
    <dc:date>2019-10-31T15:35:42Z</dc:date>
    <item>
      <title>tMongoDBRow - still using eval ???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312848#M83758</link>
      <description>&lt;P&gt;This very old post &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkmTCAS" target="_blank" rel="noopener"&gt;https://community.talend.com/t5/Design-and-Development/How-to-rename-a-MongoDB-collection/td-p/75872&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;indicated that tMongoDBRow would no longer be using eval, but instead would be using runCommand by version 6.1.&amp;nbsp; I am on version 7.1.1 and trying the example... I get an error ... error 13 - unauthorized to execute command { $eval: ....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eh?&amp;nbsp; The admin doesn't want to give eval permission.&amp;nbsp; Was this not implemented or?&lt;/P&gt; 
&lt;P&gt;Thank you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm on mongoDB 3.6.14&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312848#M83758</guid>
      <dc:creator>bglaplante</dc:creator>
      <dc:date>2024-11-16T04:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: tMongoDBRow - still using eval ???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312849#M83759</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Starting from V 6.1, we have added a new option that uses the "runCommand" feature to execute commands. This ensures the compatibility between different studio versions and the latest as we keep the $eval option and add the new "runCommand" option.&lt;/P&gt; 
&lt;P&gt;Please have a look at this component reference:&lt;A title="https://help.talend.com/reader/JAVIF8qLh6BhZ~e4~IDqtw/Lgd0SPBAv6Mkw~tV_U2~qw" href="https://help.talend.com/reader/JAVIF8qLh6BhZ~e4~IDqtw/Lgd0SPBAv6Mkw~tV_U2~qw" target="_self" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/JAVIF8qLh6BhZ~e4~IDqtw/Lgd0SPBAv6Mkw~tV_U2~qw&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the related jira issue:&lt;A title="https://jira.talendforge.org/browse/TBD-2811" href="https://jira.talendforge.org/browse/TBD-2811" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TBD-2811&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 08:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312849#M83759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-31T08:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: tMongoDBRow - still using eval ???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312850#M83760</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;OK, this helps, especially as the link I referenced above says to&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif" color="#0000FF"&gt;&lt;FONT size="2"&gt;&lt;U&gt;Uncheck&lt;/U&gt; the 'Execute command' box and type in the command as below&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;so that's wrong.&amp;nbsp; I need to check Execute Command in order to use runCommand.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Can you provide a functioning example of a command (proper syntax)?&amp;nbsp; As&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;"db.oldname.renameCollection('newName')"&lt;/PRE&gt;&lt;P&gt;Given in the old answer... results in "no such command"&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312850#M83760</guid>
      <dc:creator>bglaplante</dc:creator>
      <dc:date>2019-10-31T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: tMongoDBRow - still using eval ???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312851#M83761</link>
      <description>&lt;P&gt;OK - got a bit further --- the correct syntax would be of form&lt;/P&gt; 
&lt;PRE&gt;&lt;SPAN class="p"&gt;{&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;renameCollection&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&amp;lt;source_namespace&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;to&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&amp;lt;target_namespace&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;dropTarget&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="kc"&gt;true&lt;/SPAN&gt;&lt;SPAN class="o"&gt;|&lt;/SPAN&gt;&lt;SPAN class="kc"&gt;false&lt;/SPAN&gt;&lt;SPAN class="o"&gt;&amp;gt;&lt;/SPAN&gt;  &lt;SPAN class="nx"&gt;writeConcern&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="nb"&gt;document&lt;/SPAN&gt;&lt;SPAN class="o"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt; 
&lt;P&gt;with the " changed to ' when entering this as "construct command from JSON string" in Talend.&lt;/P&gt; 
&lt;P&gt;that then fails with a mongo error - rename collection may only be run against the admin database.&amp;nbsp; A fairly significant limitation, which seems to be in MongoDB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So it appears - without eval permission, there is no way to execute a rename collection with tMongoDBRow in my situation.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312851#M83761</guid>
      <dc:creator>bglaplante</dc:creator>
      <dc:date>2019-10-31T21:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: tMongoDBRow - still using eval ???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312852#M83762</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LOK3AAO"&gt;@bglaplante&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;OK - got a bit further --- the correct syntax would be of form&lt;/P&gt; 
 &lt;PRE&gt;&lt;SPAN class="p"&gt;{&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;renameCollection&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&amp;lt;source_namespace&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;to&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&amp;lt;target_namespace&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;dropTarget&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="kc"&gt;true&lt;/SPAN&gt;&lt;SPAN class="o"&gt;|&lt;/SPAN&gt;&lt;SPAN class="kc"&gt;false&lt;/SPAN&gt;&lt;SPAN class="o"&gt;&amp;gt;&lt;/SPAN&gt;  &lt;SPAN class="nx"&gt;writeConcern&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="nb"&gt;document&lt;/SPAN&gt;&lt;SPAN class="o"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt; 
 &lt;P&gt;with the " changed to ' when entering this as "construct command from JSON string" in Talend.&lt;/P&gt; 
 &lt;P&gt;that then fails with a mongo error - rename collection may only be run against the admin database.&amp;nbsp; A fairly significant limitation, which seems to be in MongoDB.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;So it appears - without eval permission, there is no way to execute a rename collection with tMongoDBRow in my situation.&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;With your situation, could you please create a jira issue on talend bug tracker?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 02:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-still-using-eval/m-p/2312852#M83762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-01T02:49:49Z</dc:date>
    </item>
  </channel>
</rss>

