Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Conditionally schedule task at QMC

Hi all ,

I have a situation , i want to schedule a task in QMC for every 3rd day of Month start , means id i got Saturday oe Sunday in my month start then it automatically change the date and start on start 3rd day .

Can it be possible , i don't think so , if any body have any solution please tell me .

Labels (2)
11 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

I don't think there is an option.

But yes bbt can shed some light on this if there is any such possibility.

Regards

ASHFAQ

marcus_sommer

I think it won't be possible to trigger such complex/conditional task directly within the qmc. But you could put a weekday-check at the beginning from the qvw-load and if condition don't match you finished the load with an "exit script;" statement.

You could make such check also externally and start then this task per windows task or per per execute statement from another qvw which could be triggered from the qmc again. Here a simple example for a vbs-routine to return the current weekday:

dim File, Weekday

Path = "D:\"

Weekday = left(formatdatetime(now(), 1), instr(formatdatetime(now(), 1), ",") - 1)

set fso = CreateObject("Scripting.FileSystemObject")

set File = fso.OpenTextFile("D:\TaskWeekday.txt", 2, true)

File.Write Weekday

File.close

- Marcus

maxgro
MVP
MVP

I think it won't be possible to trigger such complex/conditional task directly within the qmc. But you could put a weekday-check at the beginning from the qvw-load and if condition don't match you finished the load with an "exit script;" statement.

and if you have a dependent task, raise an error (load a non existent qvd, or something else) after the check so the dependent task doesn't start.

marcus_sommer

Of course, it's a possibility.

- Marcus

nareshthavidishetty
Creator III
Creator III

Hi Agnivesh,

did you solve this issue how to schedule the task in Qlik sense QMC

Chip_Matejowsky
Support
Support

Agnivesh's issue was likely for QlikView Server/Publisher, not Qlik Sense. Would suggest that you make a post on the Qlik Sense forums.

Principal Technical Support Engineer with Qlik Support
Help users find answers! Don't forget to mark a solution that worked for you!
agni_gold
Specialist III
Specialist III
Author

This question was published 3 years before and this was the question for QlikView server only.

passionate
Specialist
Specialist

HI Agnivesh,

You can create a Qlikview document as attached to find working day.

and have a if else loop to check working day.

if working day is 3 then load some irrelevant fields which will fail the document.

and based on job failure trigger the required task.

agni_gold
Specialist III
Specialist III
Author

Thanks for your help , but its toooooo late