<?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 Unable to run Qlik- cli qliksense CMDlet for powershell in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Unable-to-run-Qlik-cli-qliksense-CMDlet-for-powershell/m-p/1565342#M41172</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using QLIk-Cli.psm1 to start the task remotely.&lt;/P&gt;&lt;P&gt;I am able to run the powershell script through application service ID, but if same script when I try to run with our another alternate service ID( used only for remote execution) it doesn't work.&lt;/P&gt;&lt;P&gt;I tried providing Admin access to Alternate Service ID, it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error:&lt;FONT color="#f5f5f5" face="Lucida Console" size="1"&gt;:\CorpData\UserFiles\QlikSenseBatch\Job\JHDH_Composable_Extract_test.ps1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;********************************************************************************************************************&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:77 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Ses ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Member : You must specify an object for the Get-Member cmdlet.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:116 char:30&lt;/P&gt;&lt;P&gt;+ ... $Script:enums = $enums | Get-Member -MemberType NoteProperty | forea ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Member : You must specify an object for the Get-Member cmdlet.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:116 char:30&lt;/P&gt;&lt;P&gt;+ ... $Script:enums = $enums | Get-Member -MemberType NoteProperty | forea ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;************************************************************************************************************&lt;/P&gt;&lt;P&gt;I tried following adding execution policy, it did not work.&lt;/P&gt;&lt;P&gt;Set-ExecutionPolicy RemoteSigned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be great help if someone can advice on how to fix this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;import-module&lt;/FONT&gt; &lt;FONT color="#8b0000" face="Lucida Console" size="1"&gt;"E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;connect-qlik&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;Servername&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-username&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;Internal\sa_scheduler&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;start-qliktask&lt;/FONT&gt; &lt;FONT color="#8b0000" face="Lucida Console" size="1"&gt;"Task Name" &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bharath&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:08:58 GMT</pubDate>
    <dc:creator>narasimhamurthy</dc:creator>
    <dc:date>2024-11-16T06:08:58Z</dc:date>
    <item>
      <title>Unable to run Qlik- cli qliksense CMDlet for powershell</title>
      <link>https://community.qlik.com/t5/App-Development/Unable-to-run-Qlik-cli-qliksense-CMDlet-for-powershell/m-p/1565342#M41172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using QLIk-Cli.psm1 to start the task remotely.&lt;/P&gt;&lt;P&gt;I am able to run the powershell script through application service ID, but if same script when I try to run with our another alternate service ID( used only for remote execution) it doesn't work.&lt;/P&gt;&lt;P&gt;I tried providing Admin access to Alternate Service ID, it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error:&lt;FONT color="#f5f5f5" face="Lucida Console" size="1"&gt;:\CorpData\UserFiles\QlikSenseBatch\Job\JHDH_Composable_Extract_test.ps1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;********************************************************************************************************************&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:77 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Ses ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Member : You must specify an object for the Get-Member cmdlet.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:116 char:30&lt;/P&gt;&lt;P&gt;+ ... $Script:enums = $enums | Get-Member -MemberType NoteProperty | forea ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Member : You must specify an object for the Get-Member cmdlet.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:116 char:30&lt;/P&gt;&lt;P&gt;+ ... $Script:enums = $enums | Get-Member -MemberType NoteProperty | forea ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (403) Forbidden.&lt;/P&gt;&lt;P&gt;At E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1:80 char:15&lt;/P&gt;&lt;P&gt;+ ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;&lt;P&gt;************************************************************************************************************&lt;/P&gt;&lt;P&gt;I tried following adding execution policy, it did not work.&lt;/P&gt;&lt;P&gt;Set-ExecutionPolicy RemoteSigned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be great help if someone can advice on how to fix this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;import-module&lt;/FONT&gt; &lt;FONT color="#8b0000" face="Lucida Console" size="1"&gt;"E:\CorpData\UserFiles\QlikSenseBatch\QlikCliTaskTrigger\Qlik-Cli.psm1"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;connect-qlik&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;Servername&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-username&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;Internal\sa_scheduler&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;start-qliktask&lt;/FONT&gt; &lt;FONT color="#8b0000" face="Lucida Console" size="1"&gt;"Task Name" &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;bharath&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unable-to-run-Qlik-cli-qliksense-CMDlet-for-powershell/m-p/1565342#M41172</guid>
      <dc:creator>narasimhamurthy</dc:creator>
      <dc:date>2024-11-16T06:08:58Z</dc:date>
    </item>
  </channel>
</rss>

