<?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: Qlik Cili Invoke-RestMethod Error in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2066743#M18494</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47469"&gt;@Levi_Turner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22569"&gt;@Clever_Anjos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;...would love to get some help from you guys.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 13:22:50 GMT</pubDate>
    <dc:creator>Vishal_Gupta</dc:creator>
    <dc:date>2023-05-02T13:22:50Z</dc:date>
    <item>
      <title>Qlik Cili Invoke-RestMethod Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2065905#M18478</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;We send out NPrinting report every day. Currently Customer has Qlik Sense SaaS and we have deployed QSEoW and NPrinting on seperate servers. We have created a cli script which does the following operations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Export app from SaaS to local folder&lt;/LI&gt;
&lt;LI&gt;Removing all apps from workspace in Qlik Sense hub&lt;/LI&gt;
&lt;LI&gt;Importing apps from the local folder to Qlik Sense hub&lt;/LI&gt;
&lt;LI&gt;Publish and replace old apps.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;This script was working fine till last week and all the apps were getting properly migrated from SaaS to On prem and our NPrinting reports were also getting generated properly.&lt;/P&gt;
&lt;P&gt;Unfortunately, since yesterday evening we are facing a new issue which seems to be cli/api related issue.&lt;BR /&gt;While the exporting and importing of apps are working fine while replacing old app with new app&lt;BR /&gt;Error message:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Invoke-RestMethod : Content-Length or Chunked Encoding cannot be set for an operation that does not write data.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\1.22.0\functions\core.ps1:66 char:23
+ ...            $result = Invoke-RestMethod @paramInvokeRestMethod @params
+                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-RestMethod], ProtocolViolationException
    + FullyQualifiedErrorId : System.Net.ProtocolViolationException,Microsoft.PowerShell.Commands.InvokeRestMethodCo 
   mmand&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (2).png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106068i5B1D83A4990C490D/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (2).png" alt="MicrosoftTeams-image (2).png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Would really appreciate some inputs by fellow Qlik&amp;nbsp;experts.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 16:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2065905#M18478</guid>
      <dc:creator>Vishal_Gupta</dc:creator>
      <dc:date>2023-04-28T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Cili Invoke-RestMethod Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2066743#M18494</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47469"&gt;@Levi_Turner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22569"&gt;@Clever_Anjos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;...would love to get some help from you guys.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 13:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2066743#M18494</guid>
      <dc:creator>Vishal_Gupta</dc:creator>
      <dc:date>2023-05-02T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Cili Invoke-RestMethod Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2066985#M18506</link>
      <description>&lt;P&gt;If the script was working then suddenly stopped working, that suggests something has changed.&lt;/P&gt;
&lt;P&gt;If the script has not been changed then something on the Operating system must have been changed.&lt;/P&gt;
&lt;P&gt;Based on the Error Message you are currently using Qlik-CLI-Windows version 1.22.0 the update to that version&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/ahaydon/Qlik-Cli-Windows/commit/4e91750b213d523817ef987118c0bf1f9f1ebbea" target="_blank" rel="noopener"&gt;V1.22.0 Update Commit&lt;/A&gt;&amp;nbsp;included a Change in the "Core.ps1" that added&amp;nbsp;&lt;A href="https://github.com/ahaydon/Qlik-Cli-Windows/blob/4e91750b213d523817ef987118c0bf1f9f1ebbea/functions/core.ps1#L56" target="_blank" rel="noopener"&gt;$params.Header.Add("Transfer-Encoding", "chunked")&lt;/A&gt;&amp;nbsp;which seems to match the error you are seeing.&lt;/P&gt;
&lt;P&gt;It may be worth rolling back to a previous version of Qlik-CLI-Windows and giving that a try.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 23:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2066985#M18506</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-05-02T23:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Cili Invoke-RestMethod Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2072021#M18562</link>
      <description>&lt;P&gt;Never works on our system even with old release of Qlik-cli.&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FMa&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 16:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2072021#M18562</guid>
      <dc:creator>fmarvnnt</dc:creator>
      <dc:date>2023-05-16T16:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Cili Invoke-RestMethod Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2072692#M18569</link>
      <description>&lt;P&gt;if not working with older release of Qlik-CLI can you confirm that the error message is different? if you have multiple versions installed, PowerShell will default to the newest version.&lt;/P&gt;
&lt;P&gt;If is using a different version then the path shown in the error message should also be different.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 03:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2072692#M18569</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-05-18T03:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Cili Invoke-RestMethod Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2072706#M18571</link>
      <description>&lt;P&gt;As an alternative option, you could also try &lt;A href="https://github.com/QlikProfessionalServices/QlikSenseCLI/releases/latest" target="_blank" rel="noopener"&gt;QlikSenseCLI&lt;/A&gt;&amp;nbsp;(&lt;A href="https://github.com/QlikProfessionalServices/QlikSenseCLI#installation" target="_blank" rel="noopener"&gt;Installation&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;most of the commands are fairly similar to the module you are using, so converting the script should be pretty straight forward.&lt;/P&gt;
&lt;P&gt;Connect-Qlik =&amp;gt; Connect-QlikSense&lt;/P&gt;
&lt;P&gt;Invoke-QlikPut =&amp;gt; Invoke-QSPut&lt;/P&gt;
&lt;P&gt;Invoke-QlikGet =&amp;gt; Invoke-QSGet&lt;/P&gt;
&lt;P&gt;Get-QlikApp =&amp;gt; Get-QSApp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for uploading the App Binary&lt;/P&gt;
&lt;P&gt;$New = Add-QSApp -AppPath "\\path\to\file.qvd" -Name "Name Of Uploaded App" -Upload&lt;/P&gt;
&lt;P&gt;and replacing the current app&lt;/P&gt;
&lt;P&gt;Update-QSApp -Id $($new.id) -Replace -App $($old.id)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;of you can use the experimental &lt;A href="https://help.qlik.com/en-US/sense-developer/February2023/APIs/RepositoryServiceAPI/index.html?page=1428" target="_blank" rel="noopener"&gt;UploadReplace&lt;/A&gt; API&lt;/P&gt;
&lt;P&gt;Add-QSApp -AppPath \\path\to\file.qvd -Targetappid $old.id -UploadReplace&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 04:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2072706#M18571</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-05-18T04:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Cili Invoke-RestMethod Error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2087197#M18716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/122669"&gt;@Vishal_Gupta&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By any chance could it be clarified if the issue occurs when using qlik-cli for SAAS or if it fails when things are getting pushed to QS on prem ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Kind Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 12:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Cili-Invoke-RestMethod-Error/m-p/2087197#M18716</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2023-06-23T12:47:39Z</dc:date>
    </item>
  </channel>
</rss>

