Cognos Analytics

 View Only
  • 1.  Stop the email task when the report task fails in the event studio

    Posted Fri May 10, 2019 11:06 PM
    i have 2 questions:

    1)I have a Job (Agent) that is set up with an event and two sequential tasks. The event checks for the existence of a flag in a table and upon success it then runs the report which calls a SQL Server Store procedure inside the report. And that task calls the Email task which sends an email to the distribution with the output of the report task


    The problem is sometimes the report runs but the Stored Procedure call fails which basically means the report task fails. But the email still goes out with a blank report as attachment. 

    is there any way to stop sending the email when report task fails.

    2) i have 2 report tasks in one agent, both run long time. So i want them to run in sequence in stead of all at once.

    I set my tasks as run 'in sequence' to avoid deadlock, but after clicking apply-> okay->save, it will go back to 'All at once'.
    Is this feature working ?



    ------------------------------
    ella ye
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Stop the email task when the report task fails in the event studio

    Posted Mon May 13, 2019 11:06 AM
    Hi Ella,

    For #1: have you tried setting the tasks order to be "In sequence", this should guarantee the email does not get sent out unless the run report task is successful.




  • 3.  RE: Stop the email task when the report task fails in the event studio

    Posted Mon May 13, 2019 11:11 AM
    thanks Ricard. Yes I did but the function is not working as expected. Please see my question ​

    ------------------------------
    ella ye
    ------------------------------



  • 4.  RE: Stop the email task when the report task fails in the event studio

    Posted Mon May 13, 2019 11:12 AM
    Sorry for the typo, Richard.

    ------------------------------
    ella ye
    ------------------------------



  • 5.  RE: Stop the email task when the report task fails in the event studio

    Posted Mon May 13, 2019 03:28 PM
    I'm using Cognos 11.1.1.

    I can save after selecting "In Sequence",  changes are still kept after close and re-open Event Studio.

    When "In Sequence" is checked and the report fails, no email is sent out.


  • 6.  RE: Stop the email task when the report task fails in the event studio

    Posted Tue May 14, 2019 10:14 AM
    Edited by System Fri January 20, 2023 04:11 PM
      |   view attached

    Hi Richard,

    I'm using IBM Cognos Analytics 11.0.7.
    I loaded a picture to show how I did it. Let me know if anything wrong there.

    After all done, I clicked on 'reorder the tasks' again to check. Its back to 'All at once'. Tried to run the schedule as well and it still run 2 tasks in parallel.

    ------------------------------
    ella ye
    ------------------------------



  • 7.  RE: Stop the email task when the report task fails in the event studio

    Posted Tue May 14, 2019 11:54 AM
    @ella ye We are on 11.0.13 an​d I can confirm that in our version the Event works as expected for both In Sequence and Parallel. We use both of these features extensively. Might be a version specific bug. Have you reported it to IBM?

    ------------------------------
    Adrienne Beronilla
    Senior Financial Systems Analyst
    Franklin Templeton
    ------------------------------



  • 8.  RE: Stop the email task when the report task fails in the event studio

    Posted Wed May 15, 2019 11:36 AM
    Where should go to report? thought this forum is for IBM

    ------------------------------
    ella ye
    ------------------------------



  • 9.  RE: Stop the email task when the report task fails in the event studio

    Posted Wed May 15, 2019 05:04 PM
    thanks for help Richard and Adrienne. I will ask my internal congnos support team to create a case to IBM

    ------------------------------
    ella ye
    ------------------------------