<?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: QvRestConnector creates invalid keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QvRestConnector-creates-invalid-keys/m-p/1452470#M611685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gosh, i think i finally found the root cause, i selected 'Sequence ID'&amp;nbsp; as a Key generation strategy. With 'Current record'&amp;nbsp; it seems to work fine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Nov 2017 15:53:14 GMT</pubDate>
    <dc:creator>twanqlik</dc:creator>
    <dc:date>2017-11-10T15:53:14Z</dc:date>
    <item>
      <title>QvRestConnector creates invalid keys</title>
      <link>https://community.qlik.com/t5/QlikView/QvRestConnector-creates-invalid-keys/m-p/1452469#M611684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the QvRestConnector in Qlikview to extract data via an API call from Eloqua.&lt;/P&gt;&lt;P&gt;The QvRestConnector creates in the JSON SQL select script keys to link tables.&lt;/P&gt;&lt;P&gt;In my script, the created keys are invalid, they link objects that in Eloqua are not linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;In Eloqua a test campaign has only 1 email, the email has ID 76&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="182874" alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/182874_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When i create an API Call to Eloqua and I extract only the details of this Campaign, it results in 1 Email ID, that is 76. There it works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i create an API call to Eloqua in order to extract all the Campaigs, suddenly this Campaign has 2 Email ID's, 76 and 235:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="182875" alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/182875_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2 tables are linked with the __KEY_elements key, created in the JSON script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="182876" alt="3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/182876_3.PNG" style="height: 91px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"type" AS "type_u4",&lt;/P&gt;&lt;P&gt;"id" AS "id_u3",&lt;/P&gt;&lt;P&gt;"createdAt" AS "createdAt_u0",&lt;/P&gt;&lt;P&gt;"name" AS "name_u1",&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"__KEY_elements",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "emailId",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__KEY_elements_u0",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; "__FK_elements"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM "elements" PK "__KEY_elements_u0" FK "__FK_elements")&lt;/P&gt;&lt;P&gt;FROM JSON (wrap off) "elements" PK "__KEY_elements";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The __KEY_elements value from the table containing the emailID is 1 for EmailID 235 and 76.&lt;/P&gt;&lt;P&gt;The __KEY_elements value from the table containing the Campaign details is also 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how Qlikview creates these keys, because the __KEY_elements key shouldn't be 1 for EmailID 235, because in Eloqua it's not linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To verify my analysis i created the same API call in Postman, and there EmailID 235 is not linked to this example Campaign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean that Qlikview cannot be used for using an API connection with Eloqua?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/182877_4.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QvRestConnector-creates-invalid-keys/m-p/1452469#M611684</guid>
      <dc:creator>twanqlik</dc:creator>
      <dc:date>2017-11-10T15:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: QvRestConnector creates invalid keys</title>
      <link>https://community.qlik.com/t5/QlikView/QvRestConnector-creates-invalid-keys/m-p/1452470#M611685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gosh, i think i finally found the root cause, i selected 'Sequence ID'&amp;nbsp; as a Key generation strategy. With 'Current record'&amp;nbsp; it seems to work fine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 15:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QvRestConnector-creates-invalid-keys/m-p/1452470#M611685</guid>
      <dc:creator>twanqlik</dc:creator>
      <dc:date>2017-11-10T15:53:14Z</dc:date>
    </item>
  </channel>
</rss>

