Qlik Community

Ask a Question

QlikView Administration

Discussion Board for collaboration on QlikView Management.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
cancel
Showing results for 
Search instead for 
Did you mean: 
girard_ben
Contributor III
Contributor III

QMSEDX - Status of the task

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

8 Replies
girard_ben
Contributor III
Contributor III

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

paul_w_routledg
Creator II
Creator II

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.

dvasseur
Partner
Partner

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

QMSEDX.exe - Google Drive

girard_ben
Contributor III
Contributor III

thanks a lot David for your help.. but your QMSEDX not working on my Desktop...

I have an error

2017-01-16_09h16_03.png

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

dvasseur
Partner
Partner

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"

ionutbos
Contributor
Contributor

what happened with the link? it doesnt work anymore.

Greg_Williams
Employee
Employee

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

rimantasendriuk
Contributor II
Contributor II

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.