Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
I'm looking to find the best way to retrieve the result of a task launched by EDX ?
I searched in the Qlik Community...
I have found, than QMSEDX , can only trigger a task. but not retrieve the status..
Is-it right ? Do you know workaround to handle the requirment ?
thanks a lot for your help.
Benoît
Hi,
I have found a workaround
-> Verbose mode : retrieve the ExecId (with Regular Expression)
-> Find the XML file in "c:\ProgramData\QlikTech\DistributionService\EDXResult" (default path)
Find th XML file with the execId and search "TastkStatus"
I hope this workaround will help..
regards
Benoît
If you want to roll your sleeves up and get into the source code. Find the code that prints out
"The task execution ended"
and you could add to it the status of the task now that it has ended.
Change that line of code to
TraceMessage(TraceLevel.Info, String.Format("The task execution ended with status {0}.", result.TaskStatus));
In fact if dvasseur is listening this might be a good addition.
I'm always listening to good suggestions !
The thing is it could be a bit hard to parse QMSEDX result, but yeah, much easier than playing with RegEx and XML anyway
Please try this version (not tested!), if it's OK, I'll publish it
thanks a lot David for your help.. but your QMSEDX not working on my Desktop...
I have an error
But with my scheduler tool it's not a problem for me to run the original "QMSEDX" and browse XML File ...
It's not in a one step task... but it's working !!
regards
I think you're using Qlik original version of QMSEDX, not mine, please check here: QMSEDX Enhanced
With my version, the "qms" param is just the server name, not the whole URL:
QMSEDX.exe -qms="my_qv_server" -task="my task"
what happened with the link? it doesnt work anymore.
Hi David - The link identifies as the resource not being available, might have been deleted. Are you able to post the file again or upload to Qlik Community?
Thanks.
-gw
Not sure why you need the status of the task, but if you want to make sure the report is reloaded before proceeding to the next steps of your program/script, you may define some timeout for QMSEDX, like one hour:
qmsedx -task="SomeTask" -timeout=3600
Define it to some "reasonable" length and it may indicate you have to do some loading script optimization if your report reload does not fit within this timeout.