Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I use QLIK-CLI to duplicate applications.
It works fine but for large applications, a time out error occurs: "System.Net.WebException: The operation has timed out"
here is the command used:
$AppRecover = Copy-QlikApp -id $AppCurrentId
Actually, the error occurs in Powershell windows and so end the script (but the copy ends well several minutes after the error).
How can I configure my script to not have this time out or force the program to wait the end of the copy?
regards
fabb
I am certainly not seeing timeout issues on my side but I do not have an app which requires 15 minutes to copy 🙂 Here's my flow:
PS C:\> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14393.3053
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.3053
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS C:\> Connect-Qlik
PS C:\> $startTime = (Get-Date)
PS C:\> Copy-QlikApp -id b7913ff2-2294-411c-a998-41f472e54359
PS C:\> $endTime = (Get-Date)
PS C:\> $ElapsedTime = (($endTime-$startTime).TotalSeconds)
PS C:\> echo $ElapsedTime
216.8409133
Perhaps https://github.com/ahaydon/Qlik-Cli/issues/56#issuecomment-419014686 can be of some help?
Thank you for your answer,
Have change something or initialize something in yours script for the timeout?
I am certainly not seeing timeout issues on my side but I do not have an app which requires 15 minutes to copy 🙂 Here's my flow:
PS C:\> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14393.3053
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.3053
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS C:\> Connect-Qlik
PS C:\> $startTime = (Get-Date)
PS C:\> Copy-QlikApp -id b7913ff2-2294-411c-a998-41f472e54359
PS C:\> $endTime = (Get-Date)
PS C:\> $ElapsedTime = (($endTime-$startTime).TotalSeconds)
PS C:\> echo $ElapsedTime
216.8409133
Perhaps https://github.com/ahaydon/Qlik-Cli/issues/56#issuecomment-419014686 can be of some help?
Good afternoon @Fabb ,
I faced the same timeout issue. With @Levi_Turner 's suggestion I was able to overcome it.
I hope this helps,
Riccardo
You right, it works for me now,
Thank you all