<?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: LOAD * EXTENSION only loading first row in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1628204#M14596</link>
    <description>&lt;P&gt;To add some more context, here is a simplified version of the function I'm calling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    @staticmethod
    def _sample_function(request, context):
        response_rows = []

        sample_data = ["Atlanta", "Phoenix", "Denver", "Los Angeles", "Orlando"]

        row_count = 0

        for city in sample_data:
            val1 = f"{row_count}"
            val2 = city

            duals = iter([SSE.Dual(strData=val1), SSE.Dual(strData=val2)])

            response_rows.append(SSE.Row(duals=duals))

            row_count = row_count + 1

        table = SSE.TableDescription(name='SampleTable', numberOfRows=row_count)
        table.fields.add(name='id', dataType=SSE.DUAL)
        table.fields.add(name='city', dataType=SSE.DUAL)
        md = (('qlik-tabledescription-bin', table.SerializeToString()),)
        context.send_initial_metadata(md)

        yield SSE.BundledRows(rows=response_rows)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should (and does) return a table with 5 rows.&amp;nbsp; But, when Qlik Sense loads it, it loads the first row 5 times.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 15:21:14 GMT</pubDate>
    <dc:creator>shannonneumann</dc:creator>
    <dc:date>2019-09-25T15:21:14Z</dc:date>
    <item>
      <title>LOAD * EXTENSION only loading first row</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1628131#M14595</link>
      <description>&lt;P&gt;Is anyone else seeing behavior where the LOAD * EXTENSION syntax is only recognizing the first row of a table returned from an SSE? More specifically, the load recognizes that the returned table has multiple rows, but the entire table is just the first row duplicated over and over.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1628131#M14595</guid>
      <dc:creator>shannonneumann</dc:creator>
      <dc:date>2024-11-16T04:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD * EXTENSION only loading first row</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1628204#M14596</link>
      <description>&lt;P&gt;To add some more context, here is a simplified version of the function I'm calling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    @staticmethod
    def _sample_function(request, context):
        response_rows = []

        sample_data = ["Atlanta", "Phoenix", "Denver", "Los Angeles", "Orlando"]

        row_count = 0

        for city in sample_data:
            val1 = f"{row_count}"
            val2 = city

            duals = iter([SSE.Dual(strData=val1), SSE.Dual(strData=val2)])

            response_rows.append(SSE.Row(duals=duals))

            row_count = row_count + 1

        table = SSE.TableDescription(name='SampleTable', numberOfRows=row_count)
        table.fields.add(name='id', dataType=SSE.DUAL)
        table.fields.add(name='city', dataType=SSE.DUAL)
        md = (('qlik-tabledescription-bin', table.SerializeToString()),)
        context.send_initial_metadata(md)

        yield SSE.BundledRows(rows=response_rows)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should (and does) return a table with 5 rows.&amp;nbsp; But, when Qlik Sense loads it, it loads the first row 5 times.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1628204#M14596</guid>
      <dc:creator>shannonneumann</dc:creator>
      <dc:date>2019-09-25T15:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD * EXTENSION only loading first row</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1643402#M14597</link>
      <description>&lt;P&gt;A quick fix could be&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;#context.send_initial_metadata(md) comment this&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anotação 2019-11-05 170226.png" style="width: 232px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22950i304B486F01DD8F50/image-size/large?v=v2&amp;amp;px=999" role="button" title="Anotação 2019-11-05 170226.png" alt="Anotação 2019-11-05 170226.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1643402#M14597</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2019-11-05T20:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD * EXTENSION only loading first row</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1643412#M14598</link>
      <description>&lt;P&gt;A better solution&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;SSE.TableDescription(&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'SampleTable'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;numberOfRows&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;row_count)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;table.fields.add(&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'id'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dataType&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;SSE.STRING&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;table.fields.add(&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'city'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dataType&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;SSE.STRING&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;md&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;((&lt;/SPAN&gt;&lt;SPAN&gt;'qlik-tabledescription-bin'&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;table.SerializeToString()),)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;context.send_initial_metadata(md)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;yield&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;SSE.BundledRows(&lt;/SPAN&gt;&lt;SPAN&gt;rows&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;response_rows)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anotação 2019-11-05 170226.png" style="width: 595px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22951i631B51678FCFA6E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Anotação 2019-11-05 170226.png" alt="Anotação 2019-11-05 170226.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Nov 2019 20:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1643412#M14598</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2019-11-05T20:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD * EXTENSION only loading first row</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1643783#M14599</link>
      <description>&lt;P&gt;Seriously unreal. Changing those return types from SSE.DUAL to SSE.STRING absolutely fixed the issue.&amp;nbsp; Mindblowing that it was that simple, and that I didn't think to try it myself.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 14:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/LOAD-EXTENSION-only-loading-first-row/m-p/1643783#M14599</guid>
      <dc:creator>shannonneumann</dc:creator>
      <dc:date>2019-11-06T14:12:31Z</dc:date>
    </item>
  </channel>
</rss>

