The CreatorCon Call for Content is officially open! Get started here.

Next Run Date not updating on Indicator template properly

Community Alums
Not applicable

I have an indicator template that has a collection frequency of Daily.  The indicator is actually running and moving my controls to non-compliant correctly (GRC indicator nightly run scheduled job is active).  

The problem I am seeing is that the "Next run date" is not getting updated each day on the indicator template.  This is the case for all my indicator templates.  

However, it does seem each indicator gets update with the correct next run date.  

In the code for the indicator engine "IndicatorEngineBase" i see where it should be updating the indicator template next run date as well but it does not seem to be working: 

updateNextDateTime: function(indicator) {
// Update the next run time of the indicator record
var today = new GlideDate();

indicator.next_run_time = new sn_grc.FrequencyUtils().computeNextDateTime(today, indicator);


//update next scheduled date of the indicator template
var template = new GlideRecord('sn_grc_indicator_template');
if (template.get(indicator.template)) {
template.next_run_time = indicator.next_run_time;
template.update();
}

indicator.update();
},

None of the other articles posted here have answered this question - any insights?  Thank you!! 

3 REPLIES 3

Ahmed Drar
Tera Guru

Hi Kevin, are you using Override Template tick box? if yes that might prevent the next run time to be update on indicator template i believe 

 

 

find_real_file.png

Please mark my answer as Correct / Helpful based on the Impact

Community Alums
Not applicable

Hi Ahmed - no I am not.   An the dates on the Indictors themselves are correct for the next run dates - it is just the next run date never makes it to the Template but this may be by design after the first run.   

Here is a shot of a daily indicator template showing the in correct next run date and the related indicators showing the correct next run date.

find_real_file.png

Hello Kevin Frost,

 

Greetings....!!!!

 

I am also facing same issue with Tokyo version of platform. Could you please let me know how this issue has been addressed?

 

Thanks in advance.

 

Regards,

Murthy Peruri