-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Import / Export Application with big file size #82
Comments
You will need to edit the file Core.ps1:
In this file on line 32 is the command: you will need append a timeout value to this as the upload process for a 5gb file will most likely exceed the default timeout period. Let us know if this resolves your issue. |
Dear Marc, Thanks for your response. We have run the
In both cases, we have received the same error message. It is quite strange because the upload seems to complete successfully after approximately 47 minutes.The counter
disappears and after awhile (~30 seconds) we get the error message. Best regards, |
** UPDATE ** In addition we have changed the following settings in the Virtual Proxy: 1st Change Session inactivity timeout: 15 > 60 2nd Change Extended security environment: Yes > No In both cases we have received the same error message. |
1 similar comment
** UPDATE ** In addition we have changed the following settings in the Virtual Proxy: 1st Change Session inactivity timeout: 15 > 60 2nd Change Extended security environment: Yes > No In both cases we have received the same error message. |
In addition to my previous post, we get a similar error when we try to Export a big Qlik Sense Application. The error we get is the following Invoke-RestMethod : Stream was too long We found out that the maximum size for a Qlik Application in order to be exported successfully is 2,147,483,591 bytes (2 GB). Finally, as mentioned in Title: Invoke-RestMethod fails on very large files 'Invoke-RestMethod fails to download a large file but Invoke-WebRequest works' Any help would be highly appreciated. Thanks, |
Dear Adam, Thanks for your efforts. I will download & try the new version today. Best regards, |
I suggest also setting $ProgressPreference='SilentlyContinue' as the download will be much faster |
*** UPDATE *** The new version behaves as described below:
|
That makes sense as I only implemented a fix for the download, the upload seems to be a different issue, as you get a 500 error that suggests it is Sense that is rejecting the request rather than a client-side failure. |
Dear Adam, Can you propose us any other troubleshooting action about the import? The application can be imported successfully via Chrome browser. I will add the $ProgressPreference in my next test runs. Many thanks once more! Best regards, |
If you want to try the same fix that worked for the download you could change line 32 in core.ps1 to the following |
I will apply the aforementioned changes and I' ll let you know. PS: Before your latest answer, I have changed line 35 in the following way and ran once more the import.
|
*** UPDATE *** I have made the following changes in the core.ps1 for the import: 1.) line 32 - changed the condition
2.) new line 33 - addition
3.) new line 34 - changed the cmdlet used 1st test
2nd test
On both tests, we received the same error message:
Thanks in advance for any corrective actions or suggestions, |
As pointed out in the referenced PowerShell post, Invoke-RestMethod seems to have issues with Large files. If you are attempting to add a large file into Qlik, one potential work around would be to use the Import Folder. Once you have connected to the Qlik Sense Environment, you can run the following command to determine the Import folder.
Once you have determined the Import folder you can copy the App Binary into that folder then use Note the quotes |
Hi Marc, Your workaround works like a charm! The steps that I have followed are listed below: 1. Identification of the of
Result
2. Placement of the application with big file size in the aforementioned path. 3. Import of the application with the following command
Finally, I would like to ask you if you plan to provide a fix for the Thanks for your valuable help both Adam & Marc! Best regards, |
1 similar comment
Hi Marc, Your workaround works like a charm! The steps that I have followed are listed below: 1. Identification of the of
Result
2. Placement of the application with big file size in the aforementioned path. 3. Import of the application with the following command
Finally, I would like to ask you if you plan to provide a fix for the Thanks for your valuable help both Adam & Marc! Best regards, |
A final question would be the following... I am trying to use the workaround in the following way
The script above prints the following result
If I try the following command
I get an error message
If I get the the generated command and run it manually
it works fine. Note: I have copied the ABC_ILIAS.qvf file in the ImportFolder. Do you have any idea on this issue? Is it a PowerShell restriction? Thanks, |
@ifytra when using " around the filename on the command line it is interpreted as meaning everything between them is a string value of the parameter and the quotes are not actually part of the value. However, when you concatenate " and ' they are both part of the actual value. |
Hi Adam, Thanks for the clarification. I will try to apply your suggestion in my scripts. Meanwhile, I have found the following workaround:
Best regards, |
Personally this feels very complicated, but then again I hate concatenating strings. The following will work.
|
Thanks for your comment Marc. I will test your suggestion and I' ll let you know. iLiAS |
Dear Marc & Adam, In conclusion, 1. We have a fix for exporting applications which file size is > 2GB. (v.1.15.1) 2. We have a workaround for the import command.
I would to thank you both once more. Greetings from Athens, Greece. Best regards, |
Dear all,
We are using Qlik Sense September 2018 SR2 and with the precious help of Qlik-Cli we are trying to import the application which is being given with Qlik Scalability Tools (File: 200M-PTSalesAnalytics.qvf , Size: 5,45GB).
We use the following commands to import the file
Import-Module Qlik-Cli
Connect-Qlik -computername qserver -username qserver\QlikAdmin
Import-QlikApp -name "200M-PTSalesAnalytics" -file "C:\200M-PTSalesAnalytics.qvf" -upload
Notes: QlikAdmin is a RootAdmin account.
While the file initially is being uploaded (the bytes counter disappear after several minutes) , we get the following error
_Invoke-RestMethod: The remote server returned an error: (500) Internal Server Error.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:32 char:15
When we try to import an application with a smaller file size (e.g. 800MB), the operation completes successfully. Do you have any idea on how can we workaround this error?
Thanks for your time and actions!
Best regards,
iLiAS
The text was updated successfully, but these errors were encountered: