Skip to main content
Announcements
Do More with Qlik - Qlik Cloud Analytics Recap and Getting Started, June 19: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
alexdataiq
Partner - Creator III
Partner - Creator III

Modifying status of failed tasks?

Hi everyone,

Maybe this a dumb question to ask. As we all know, when a task fails it displays an icon of a white cross over a red background, that's great because it helps us find more quickly the failed task. After a succesful re-run the error icon dissapears and everything is fine.

But there are some tasks where there's not so important (for us) to keep displaying the error icon after some time (test tasks, tasks that only run once a month, etc). So here comes my question:

Is it posible to "restore" the error state o a "normal/default" one?

It seems to me that if we modify the the value of the InternalError key to "False" instead of "True" in the  XML file for the task located in C:\ProgramData\QlikTech\DistributionService\TaskResults\TaskResult_TaskID.xml this could be achieved.

I figure that this isn't recommended by QlikTech but, could it be done? Would it be necessary to restart the services in order for the  status change to take effect?

Regards

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can change the Status as you suggested, and the history will still reflect the failure for the record. My experience is that you have to restart only the Management Service to have the change reflected in the QMC.

I would be careful, but I think it's a fairly safe edit to make as you are only editing the one file associated with that task.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

8 Replies
p_verkooijen
Partner - Specialist
Partner - Specialist

If a failure is not an issue you could change the Errormode.

This variable determines what action is to be taken by QlikView when an error is encountered during script execution.

By default ErrorMode=1 the script execution will halt and the user will be prompted for action (non-batch mode).

By setting ErrorMode=0 QlikView will simply ignore the failure and continue script execution at the next script statement.

By setting ErrorMode=2 QlikView will trigger an "Execution of script failed..." error message immediately on failure, without prompting the user for action beforehand.

If you would like to receive a error after a failed reload you could use a on post reload Alert (Ctrl+Shift+A in the document) to generate a mail on ScriptErrorCount>0, content can be created using the ScriptErrorList and ScriptErrorDetails

alexdataiq
Partner - Creator III
Partner - Creator III
Author

Hi Paul,

Failures are an issue and we want to know if they've failed or not so we can't change the ErrorMode in our scripts.

Regards

p_verkooijen
Partner - Specialist
Partner - Specialist

Hi Eduardo,

You can still receive failures using alerts.

I wouldn't recommend changing the xml.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Delete the task, and recreate it with identical parameters. Or make a second copy and delete the first. Tasks have a unique internal ID, so AFAIK this should clear the error icon and clear the Last Execution time.

Peter

alexdataiq
Partner - Creator III
Partner - Creator III
Author

Hi Peter,

If I do this the execution history will be lost, am I right? We would like to keep the history.

Regards.

alexdataiq
Partner - Creator III
Partner - Creator III
Author

We also receive alerts by e-mail, but it's easier to check in the QMC for the failed tasks

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can change the Status as you suggested, and the history will still reflect the failure for the record. My experience is that you have to restart only the Management Service to have the change reflected in the QMC.

I would be careful, but I think it's a fairly safe edit to make as you are only editing the one file associated with that task.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

alexdataiq
Partner - Creator III
Partner - Creator III
Author

Thank you for your answer Rob!

I thought It would be fairly safe, but wanted some confirmation from someone else on the community!