Risk Rating Not Displayed - Vendor Risk AssessmentIssue Risk Rating field is not populating on the VRA record. Despite of having the assessment and document requests 100% completed and having a risk rating populated for each. CauseThe sample vendor risk assessment had 'Risk Rating Valid To' 2021-07-02 09:37:10 Assessment instance record received response on 2021-07-08 RiskRatingTopDownCalculatorBase._addRiskRating() will only add risk rating to records which do not have risk rating valid to dates in the past. /sys_script_include.do?sys_id=a514684307270010bbc77f04a9d3007c _addRiskRating: function(table) { var count = new GlideAggregate(table); count.addQuery('vendor_risk_assessment', this.assessment.getUniqueValue()); count.addEncodedQuery('questionnaire_instance.risk_ratingISNOTEMPTY'); count.addEncodedQuery('risk_rating_valid_to>=javascript:gs.beginningOfToday()'); count.addAggregate('COUNT', 'risk_area_definition'); count.addAggregate('MIN','questionnaire_instance.risk_rating.value'); count.addAggregate('MAX','questionnaire_instance.risk_rating.value'); count.addAggregate('SUM','questionnaire_instance.risk_rating.value'); count.groupBy('risk_area_definition'); count.query(); while (count.next()) { var riskAreaDefinition = count.getValue('risk_area_definition'); var riskAreaGr = this._getRiskAreaFromRiskAreaCriteria(riskAreaDefinition); if (gs.nil(riskAreaGr)) { continue; } var riskAreaSysId = riskAreaGr.getUniqueValue(); var scoringMethodValue = riskAreaGr.scoring_method.value + ''; if (!this.riskRatingPerArea.hasOwnProperty(riskAreaSysId)) { this.riskRatingPerArea[riskAreaSysId] = { 'riskRatingArray' : [], 'objCountArray' : [], 'scoringMethod' : scoringMethodValue, 'weight' : riskAreaGr.getValue('weight') }; } if (scoringMethodValue == 'MAX') { this.riskRatingPerArea[riskAreaSysId]['riskRatingArray'].push(count.getAggregate('MAX','questionnaire_instance.risk_rating.value')); } else if (scoringMethodValue == 'MIN') { this.riskRatingPerArea[riskAreaSysId]['riskRatingArray'].push(count.getAggregate('MIN','questionnaire_instance.risk_rating.value')); } else { this.riskRatingPerArea[riskAreaSysId]['riskRatingArray'].push(count.getAggregate('SUM','questionnaire_instance.risk_rating.value')); } this.riskRatingPerArea[riskAreaSysId]['objCountArray'].push(count.getAggregate('COUNT', 'risk_area_definition')); } }ResolutionThe application is working as intended. Please see the code for _addRiskRating. The sample record did not receive a risk rating because the assessment responses were received after the risk rating valid to date. To fix this, you can simply extend the risk rating valid to date for the problem record.