<?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 - Rename collection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-Rename-collection/m-p/2499787#M141671</link>
    <description>&lt;P&gt;I have the same error, have you found the solution since please&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 14:45:08 GMT</pubDate>
    <dc:creator>Barça2025</dc:creator>
    <dc:date>2025-01-02T14:45:08Z</dc:date>
    <item>
      <title>tMongoDBRow - Rename collection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-Rename-collection/m-p/2413751#M140084</link>
      <description>&lt;P&gt;I am trying to rename a collection by using&amp;nbsp;tMongoDBRow with JSON string command as "{&lt;BR /&gt;renameCollection:'test_service_plan_label', &lt;BR /&gt;to:'service_plan_label_s'&lt;BR /&gt;dropTarget:true&lt;BR /&gt;}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting an error :&amp;nbsp;'renameCollection may only be run against the admin database'&lt;/P&gt;
&lt;P&gt;I checked with Admin team and I do have necessary access to rename. I can do it from Mongoshell using the below command&lt;/P&gt;
&lt;P&gt;db.getSiblingDB("admin").runCommand({&lt;BR /&gt;renameCollection:'MongoDev01BroadbandLabel.test_service_plan_label', &lt;BR /&gt;to:'MongoDev01BroadbandLabel.service_plan_label_s',&lt;BR /&gt;dropTarget:true&lt;BR /&gt;})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or by doing use admin and running db.runCommand(&lt;BR /&gt;{&lt;BR /&gt;renameCollection:'MongoDev01BroadbandLabel.test_service_plan_label', &lt;BR /&gt;to:'MongoDev01BroadbandLabel.service_plan_label_s',&lt;BR /&gt;dropTarget:true&lt;BR /&gt;}&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;How can I make this work with Talend?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 21:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-Rename-collection/m-p/2413751#M140084</guid>
      <dc:creator>sneha_y</dc:creator>
      <dc:date>2024-02-01T21:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: tMongoDBRow - Rename collection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-Rename-collection/m-p/2499787#M141671</link>
      <description>&lt;P&gt;I have the same error, have you found the solution since please&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMongoDBRow-Rename-collection/m-p/2499787#M141671</guid>
      <dc:creator>Barça2025</dc:creator>
      <dc:date>2025-01-02T14:45:08Z</dc:date>
    </item>
  </channel>
</rss>

