<?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 Using Qlik Sense .Net SDK to create a new app from existing: load script change and call to reload in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-Qlik-Sense-Net-SDK-to-create-a-new-app-from-existing-load/m-p/2416483#M19819</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;By using Qlik Sense .Net SDK:&lt;/P&gt;
&lt;P&gt;I created a new app from existing one,&lt;/P&gt;
&lt;P&gt;then I changed the&amp;nbsp;load script for new app,&lt;/P&gt;
&lt;P&gt;and then I called to reload process for new app.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ozcano_5-1707384054407.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159365i65B55C24F38E1AFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ozcano_5-1707384054407.png" alt="ozcano_5-1707384054407.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But there are two problems&lt;/P&gt;
&lt;P&gt;1- Although I can see from the logs under C:\ProgramData\Qlik\Sense\Log\Script that execution completed, the line myNewReload.Wait(); newer finishes, it simply waits as if it is not completed.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ozcano_2-1707383651754.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159359i35054DE6E971B6DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ozcano_2-1707383651754.png" alt="ozcano_2-1707383651754.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2-Although I can see from the logs under C:\ProgramData\Qlik\Sense\Log\Script that load script has been correctly changed, the resultant application still contains old data. That is, not the new OrdererStoreCode (which is 57), but old one (which was 10). This is probably happening from the same reason as in the first problem above.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ozcano_4-1707383805831.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159362i293A4F96514E2451/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ozcano_4-1707383805831.png" alt="ozcano_4-1707383805831.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Would you please help?&lt;/P&gt;
&lt;P&gt;Regards, Ozcan&lt;/P&gt;
&lt;P&gt;NOTE: The reason I am doing all these is: We have an app which contains billion+ rows and which works slow because of this large data (cannot reduce data for business reasons). We want to divide app into parts by branches. The problem is we have 100+ branches, so we need 100+ apps just for this app type. We do not have resources to manage so many applications manually. So if we can manage (create, load, publish etc.) all with Qlik Sense .Net SDK, it will be much easy.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 09:30:12 GMT</pubDate>
    <dc:creator>ozcano</dc:creator>
    <dc:date>2024-02-08T09:30:12Z</dc:date>
    <item>
      <title>Using Qlik Sense .Net SDK to create a new app from existing: load script change and call to reload</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-Qlik-Sense-Net-SDK-to-create-a-new-app-from-existing-load/m-p/2416483#M19819</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;By using Qlik Sense .Net SDK:&lt;/P&gt;
&lt;P&gt;I created a new app from existing one,&lt;/P&gt;
&lt;P&gt;then I changed the&amp;nbsp;load script for new app,&lt;/P&gt;
&lt;P&gt;and then I called to reload process for new app.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ozcano_5-1707384054407.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159365i65B55C24F38E1AFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ozcano_5-1707384054407.png" alt="ozcano_5-1707384054407.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But there are two problems&lt;/P&gt;
&lt;P&gt;1- Although I can see from the logs under C:\ProgramData\Qlik\Sense\Log\Script that execution completed, the line myNewReload.Wait(); newer finishes, it simply waits as if it is not completed.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ozcano_2-1707383651754.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159359i35054DE6E971B6DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ozcano_2-1707383651754.png" alt="ozcano_2-1707383651754.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2-Although I can see from the logs under C:\ProgramData\Qlik\Sense\Log\Script that load script has been correctly changed, the resultant application still contains old data. That is, not the new OrdererStoreCode (which is 57), but old one (which was 10). This is probably happening from the same reason as in the first problem above.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ozcano_4-1707383805831.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159362i293A4F96514E2451/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ozcano_4-1707383805831.png" alt="ozcano_4-1707383805831.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Would you please help?&lt;/P&gt;
&lt;P&gt;Regards, Ozcan&lt;/P&gt;
&lt;P&gt;NOTE: The reason I am doing all these is: We have an app which contains billion+ rows and which works slow because of this large data (cannot reduce data for business reasons). We want to divide app into parts by branches. The problem is we have 100+ branches, so we need 100+ apps just for this app type. We do not have resources to manage so many applications manually. So if we can manage (create, load, publish etc.) all with Qlik Sense .Net SDK, it will be much easy.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 09:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Using-Qlik-Sense-Net-SDK-to-create-a-new-app-from-existing-load/m-p/2416483#M19819</guid>
      <dc:creator>ozcano</dc:creator>
      <dc:date>2024-02-08T09:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Qlik Sense .Net SDK to create a new app from existing: load script change and call to reload</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Using-Qlik-Sense-Net-SDK-to-create-a-new-app-from-existing-load/m-p/2416533#M19821</link>
      <description>&lt;P&gt;Could it be that the new app is still saving, and that that is why the DoReload call hasn't completed yet even though the script indicates that it is done? Other than that, I don't see anything obviously wrong in your program.&lt;/P&gt;
&lt;P&gt;But I would recommend that you use the Repository endpoints when doing operations such as app copy. The copy flow involves both the engine and the repository, so I'm not 100% sure the engine endpoint does everything you would expect. I have this library for doing REST calls to Qlik Sense that could be of interest to you since you're familiar with the .NET SDK:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nuget.org/packages/QlikSenseRestClient/" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/QlikSenseRestClient/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;With that one, you can do an app copy through the Repository like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var restClient = new RestClient(location.ServerUri);
restClient.AsNtlmUserViaProxy(certificateValidation: false);
var newAppName = "MyAppCopy";
var newApp = restClient.Post&amp;lt;JObject&amp;gt;($"/qrs/app/{appId}/copy?name={newAppName}");
var newAppId = newApp["id"].Value&amp;lt;string&amp;gt;();&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then with that "newAppId" you can open it through the .NET SDK and do what you want in terms of script modification and reload. Of course, "newAppName" should be replaced according to your needs.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 09:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Using-Qlik-Sense-Net-SDK-to-create-a-new-app-from-existing-load/m-p/2416533#M19821</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2024-02-09T09:31:07Z</dc:date>
    </item>
  </channel>
</rss>

