Hi @ahaydon,
i am trying to export the apps using following code
Get-PfxCertificate -FilePath C:\Certificates\CLI\client.pfx |
Connect-Qlik -ComputerName siiplqlikdev -Username siiplqlikdev\qlikservice -TrustAllCerts
$myserver = "siiplqlikdev"
$folder = "c:\Qlik Backup"
Connect-Qlik $myserver ## check https://github.com/ahaydon/Qlik-Cli for details
foreach($qvf in $(get-qlikapp)) {
if ($qvf.published -and $qvf.stream.name) { # Is it published?
$streamfolder = $qvf.stream.name
If(!(test-path "$folder$streamfolder")) # Create a folder if it does not exists
{
New-Item -ItemType Directory -Force -Path "$folder$streamfolder"
}
} else {
$streamfolder = ""
}
Export-QlikApp -id $qvf.id -filename "$($folder)$($streamfolder)$($qvf.name).qvf" #dumps the qvf
}
but i am getting following error at the export
Invoke-WebRequest : Content-Length or Chunked Encoding cannot be set for an operation that does not write data.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:60 char:23
$result = Invoke-WebRequest @paramInvokeRestMethod @params -UseBasic ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], ProtocolViolationException
FullyQualifiedErrorId : System.Net.ProtocolViolationException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Thanks in advance
Hi @ahaydon,
i am trying to export the apps using following code
Get-PfxCertificate -FilePath C:\Certificates\CLI\client.pfx |$qvf in $ (get-qlikapp)) {$qvf.id -filename "$ ($folder)$ ($streamfolder)$ ($qvf.name).qvf" #dumps the qvf
Connect-Qlik -ComputerName siiplqlikdev -Username siiplqlikdev\qlikservice -TrustAllCerts
$myserver = "siiplqlikdev"
$folder = "c:\Qlik Backup"
Connect-Qlik $myserver ## check https://github.com/ahaydon/Qlik-Cli for details
foreach(
if ($qvf.published -and $qvf.stream.name) { # Is it published?
$streamfolder = $qvf.stream.name
If(!(test-path "$folder$streamfolder")) # Create a folder if it does not exists
{
New-Item -ItemType Directory -Force -Path "$folder$streamfolder"
}
} else {
$streamfolder = ""
}
Export-QlikApp -id
}
but i am getting following error at the export
Invoke-WebRequest : Content-Length or Chunked Encoding cannot be set for an operation that does not write data.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:60 char:23
$result = Invoke-WebRequest @paramInvokeRestMethod @params -UseBasic ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], ProtocolViolationException
FullyQualifiedErrorId : System.Net.ProtocolViolationException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Thanks in advance