marcusspitzmiller / qliksensetask Goto Github PK
View Code? Open in Web Editor NEWActive - QlikSenseTask is a tool for starting Qlik Sense tasks from the command line.
Active - QlikSenseTask is a tool for starting Qlik Sense tasks from the command line.
Hello,
We use QlikSenseTask.exe to execute QlikSense Tasks from the command line.
In the log of the standard output we have only the log of QlikSenseTask.exe.
We would like to get also the QlikSense script log in the standard output.
Is it possible to get QlikSense script log in the standard output ?
Best Regards.
Sidi
Hi,
Hope you will help me to solve the issue. my requirement is to trigger the sense task when talend job finishes so i have copied the files from my local machine and tried to execute the sense task successfully. but when i tried to call the bat file which is placed in the qliksense server, i am not able to execute. hence i copied the files in the talend server and tried but there is an issue with communication between . so i would like to know the ports which are responsible so that i can open those ports and test.
Thanks in advance,
Gopi
I can see, that log file is place in the folder from where you call the exe-file.
This will give issues when you try to launch exe-file from another tool - for example SSIS.
I suggest you add a parameter of where to place log-file.
Hello all
Does anybody experience issues trying to run multiple jobs at the same time ?
I am getting this message " The process cannot access the file because it is being used by another process."
I really appreciate your help !
thank you
Hello all
I hope you could help me on this issue :(
I have been trying to make it work for days and it is just not happening :(
I download the 3.X.zip on the server; then i extract the folder on the Desktop and then i go where the executable is and simply run this command line:
QlickSenseTask.exe -task:"LPP" -proxy:https://rchqlsed2.na.lennoxintl.com -wait:600
also i tried to go the the link https://rchqlsed2.na.lennoxintl.com/qrs/about on the server
The website declined to show this webpage - HTP 403
2018_03_28_01_52_19,Information,"Task: LPP"
2018_03_28_01_52_19,Information,"Proxy: https://rchqlsed2.na.lennoxintl.com"
2018_03_28_01_52_19,Information,"Wait: 60 seconds"
2018_03_28_01_52_19,Information,"Poll: 30 seconds"
2018_03_28_01_52_19,Information,"Log: C:\Users\jlb\Desktop\QlikSenseTask-3.X\QlikSenseTask-3.X"
2018_03_28_01_52_19,Information,"Delete Log: -90 days"
2018_03_28_01_52_19,Information,"Creating connection..."
2018_03_28_01_52_19,Debug,"Creating web connection..."
2018_03_28_01_52_19,Debug,"Creating CookierAwareWebClient..."
2018_03_28_01_52_19,Debug,"calling /qrs/about"
2018_03_28_01_52_19,Debug,"setting headers"
2018_03_28_01_52_19,Debug,"constructing query string"
2018_03_28_01_52_19,Debug,"calling https://rchqlsed2.na.lennoxintl.com/qrs/about"
2018_03_28_01_52_20,Debug,"error: The remote server returned an error: (403) Forbidden."
2018_03_28_01_52_20,Error,"System.Exception: Couldnt connect to the server at https://rchqlsed2.na.lennoxintl.com , check that the Proxy and QRS are running. Message: Forbidden: Your account is inactive. Contact your administrator to activate it.
at QVnextDemoBuilder.QRSNTLMWebClient..ctor(String QRSserverURL, Int32 requesttimeout, Logger logger)
at QlikSenseJSONObjects.QlikSenseJSONHelper..ctor(String url, Int32 timeout, Logger logger)
at QlikSenseTask.Program.Main(String[] args)"
2018_03_28_01_52_20,Information,"Returning Errorlevel 8"
Hi, is it possible to work with triggered reload tasks? For example I have two tasks and second task starts only after first one. My question would be: How to get information from second reload task (Is it successful or it failed) entering only first task name as variable to -task: parameter? Is it possible?
Hello,
When I launch this executable, I get the following error :
"Since your browser does not support JavaScript, you must press the Resume button once to proceed."
I allowed "Scripting" in IE (version11), in internet options.
it's working on another server but not this one.
Do you have any idea ?
Thanks and Regards,
Julie
Within:
public void CleanLogFiles(string logpath, Int32 deletelog)
can you pls. add a catch if the logfile can't be deleted? for some reasons we are checking, the file can't be deleted even as full rights are granted to the service user...
at least the main task should finish it's job ...
Thanks Philipp
Hi,
I was been trying to implement the task runner from Qlikview to Qliksense and also i was trying to run externally to run the tasks externally but i am getting the error as below.
Time, LogLevel, Message
2018_03_29_11_52_51,Information,"Task: Reload task of License monitor"
2018_03_29_11_52_51,Information,"Proxy: http://XXXXX"
2018_03_29_11_52_51,Information,"Wait: 1400 seconds"
2018_03_29_11_52_51,Information,"Poll: 30 seconds"
2018_03_29_11_52_51,Information,"Log: C:\Users\XXXX\Desktop\QlikSenseTask-3.X"
2018_03_29_11_52_51,Information,"Delete Log: -90 days"
2018_03_29_11_52_51,Information,"Creating connection..."
2018_03_29_11_52_51,Debug,"Creating web connection..."
2018_03_29_11_52_51,Debug,"Creating CookierAwareWebClient..."
2018_03_29_11_52_52,Debug,"calling /qrs/about"
2018_03_29_11_52_52,Debug,"setting headers"
2018_03_29_11_52_52,Debug,"constructing query string"
2018_03_29_11_52_52,Debug,"calling http://XXXXXXXXXXX/qrs/about"
2018_03_29_11_52_53,Debug,"error: Unable to connect to the remote server"
2018_03_29_11_52_53,Error,"System.Exception: Couldnt connect to the server at http://g4w9959.houston.hpecorp.net , check that the Proxy and QRS are running. Message: ConnectFailure: Unable to connect to the remote server
at QVnextDemoBuilder.QRSNTLMWebClient..ctor(String QRSserverURL, Int32 requesttimeout, Logger logger)
at QlikSenseJSONObjects.QlikSenseJSONHelper..ctor(String url, Int32 timeout, Logger logger)
at QlikSenseTask.Program.Main(String[] args)"
2018_03_29_11_52_53,Information,"Returning Errorlevel 8"
Even i checked the Proxy and QRS services running perfectly but even though it throws me a same error as above, i have tried changing the HTTP to HTTPS as well, it does't seems to work.
This is an awesome tool, it was working while ago in Qliksense 3.2.3 but after upgrade Qliksense Novemer 2017 Relaease it was not working. Did anybody experienced same scenario please let me know how could i make it work or Any latest version are we going to get.
Thanks,
Ravinder
Having a symbol like '&' in the task name for example "Extract&Transform"
Gives an error:
Bad Request: Missing parameter value(s)
But after removing the symbol the task starts correctly.
Is there a way of starting the task by taskID for example?
Hi. I've tried running version 3.x from the command line and from a QlikView script. Each time the application quits and returns the following in the command window. Can you suggest how I might resolve this?
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the boun
ds of the array.
at QlikSenseTask.Program.Main(String[] args)
Hi.
After the organization went to forced TLS1.2, it looks like QlikSensTask is not managing to trigger a task on Qlik Sense server.
I can see that you have started with tls1.2 on the source code, Any binary soon?
Regards
Hermod
Hi!
I want to start the task on a specific SLAVE node.
Unfortunately I don't find anything in the API documenation.
Is there any chance to tell Qlik Sense on which QSS-node the task is started?
Thx,
Roland
Per the instructions, I omit the -wait parameter, but despite having removed the default -wait from config.txt, the default remains 600 seconds. If I put the parameter -wait:0, it has the desired effect of an asynchronous task submission, but does finish with Error Level 8. Using debug and overriding timeout to 0 will then give Error Level 4.
Ideally, it would honor the lack of the -wait parameter and consider it a successful execution even if it's simply to kick off a Task.
I am getting a similar error to what others have reported;
"System.Exception: Couldnt connect to the server at http://mysenseserver.com , check that the Proxy and QRS are running. Message: Unauthorized:
at QVnextDemoBuilder.QRSNTLMWebClient..ctor(String QRSserverURL, Int32 requesttimeout)
at QlikSenseTask.Program.Main(String[] args)"
I have concluded that it is some sort of permissions error. I have tried this under 2 different users that are setup identically in Sense QMC (as far as I can tell). One user it works fine and the second user it gets this error. Both users are setup as "RootAdmin". One user is my own personal acccount; works great! The other account in the Qlikview service account (the one I need to work) but it triggers the error. I need this to trigger successfully using the exact scenario laid out in the readme.cmd file; run as a supporting task from Qlikview publisher. But, when running it from Publisher is uses the Qlikview service account so that is why I need to get that one to work.
I am at a complete loss of ideas at this point. If I create a new user, assign RootAdmin role it works great. I have checked and double checked that the qlikview service account has the same permissions as the accounts that work but still no success. There has got to be something simple I'm missing. Any ideas are greatly appreciated.
thanks
Hi,
First of all thank you so much for this tool! I use it on all my clients.
I'm facing some problems with the -Wait parameter.
I run the QlikSenseTask using the SQL server agent. And I would like the job in the SQL server agent to finish succesfully right after it have triggered the Sense task, mo matter if the Sense task fails or whatever.
I can see that you should be able to make it return imediately, if you OMIT the -Wait parameter.
But how do you do this exactly?
Delete it from the config file, just defaults it to 600 seconds.
Thank you so much for your help.
/Dennis
We want to use this tool to reload an app from a Qlik Sense script.
For example :
IF x = 'A' THEN
Run task A
ELSE
Run task B
END IF
The tool reloads a task perfectly when used in a command Window but it isn't working when executed from Qlik script with this command:
EXECUTE lib://QlikSenseTask\QlikSenseTask.exe -task:"Reload task of Dashboard A"
The tool creates a new logfile but that's it. The logfile stays empty. Qlik Sense is in Legacy mode and execution of commands is set in the settings.
What can I do to make this work?
Hi ,
We are getting frequent failures for on of our Qliksense task connected using External dependencies from Control-m end and we are getting "Returning Errorlevel 8" as an error. Can you please help us to know what could be the reason for this?
Hi,
This tool is very useful. But on our server, it creates logfiles with 12H-timestamp. Can I somehow enable 24H-timestamp instead?
Thanks!
This is a great tool. We use it all the time. One thing we're trying to overcome is queuing on the QlikView QMC for these Qlik Sense tasks. Since they take so little QlikView resources to run, we're curious to see how we can eliminate queuing.
THe tool was working properly but after we enabled TLS1.2 and disabled TLS1.1 and 1.0, it stopped working.
The error which am getting is as below.
2021_10_08_12_57_37,Debug,"error: The underlying connection was closed: An unexpected error occurred on a receive."
2021_10_08_12_57_37,Error,"System.Exception: Couldnt connect to the server at , check that the Proxy and QRS are running. Message: Object reference not set to an instance of an object.
at QVnextDemoBuilder.QRSNTLMWebClient..ctor(String QRSserverURL, Int32 requesttimeout, Logger logger)
at QlikSenseJSONObjects.QlikSenseJSONHelper..ctor(String url, Int32 timeout, Logger logger)
at QlikSenseTask.Program.Main(String[] args)"
2021_10_08_12_57_37,Information,"Returning Errorlevel 8"
Any help is appreciated
Hi! Using Global Settings file in a form -proxy:https://localhost -wait:600 it fails with wrong proxy server (see log file):
Time, LogLevel, Message
2018_07_27_10_50_00,Information,"Task: Automatic reload of My Task"
2018_07_27_10_50_00,Information,"Proxy: "https://localhost" -wait:600"
2018_07_27_10_50_00,Information,"Wait: 600 seconds"
When I use it in a form:
-proxy:https://localhost
-wait:600
(space symbol is replaced by CR/LF) then it works ok.
Hello,
QliksenseTask stopped working since November 2019 upgrade.
throwing following error message:
2020_01_27_16_59_11,Debug,"calling https://servername.company.com/qrs/about"
2020_01_27_16_59_11,Debug,"error: The remote server returned an error: (400) Bad Request."
2020_01_27_16_59_11,Error,"System.Exception: Couldnt connect to the server at https://servername.company.com , check that the Proxy and QRS are running. Message: The http request header is incorrect.: <!doctype html>
Hi there.
Is this tested with Qlik Sense 3?
Hi,
I am getting an error The remote server returned an error: (401) Unauthorized
when I am trying to run a task.
I am connecting to the server with the user that running the services and that user is rootadmin.
Any ideas?
Thanks,
Or
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.