SAP Knowledge Base Article - Public

2324962 - Security Rule error in coming up in the catalog - 'Rule {0} requires the errorLabel property to have a value' SF Learning

Symptom

  1. A security rule message pop up next to the Learning Item.
  2. There is no problem as such with the instance or the view but the error seems some kind of security warning
  3. This pop up error will not show with all the item only one or two

 

 

 

glabel.png

Environment

SAP SF Leanring Management System

Reproducing the Issue

  1. 1) Go to the catalog.
  2. 2) Search for the item.
  3. 3) While you are getting the description of the item on the page this security label error will also show.

Cause

There are some bad labels in the system. The reason you’re seeing this message

Resolution

 

The issue here. There are some bad labels in the system. The reason you’re seeing this message is because of the following label:

 

format.cardView.FeaturedItem.noReason

 

This specifies the label to display for a featured item when no reason has been specified. The current label value in the customer system is:

 

<span classerror.WebSecurityConfiguration.SecurityFilterRule.errorLabelRequirederror.WebSecurityConfiguration.SecurityFilterRule.errorLabelRequirederror.WebSecurityConfiguration.SecurityFilterRule.errorLabelRequired=<li>Security Rule {0} requires the errorLabel property to have a value.</li>

 

Which is what you are seeing. The default value that ships with the LMS is:

 

format.cardView.FeaturedItem.noReason=<span class="featuredType">Featured Course</span>

 

It looks like there are other bad labels as well. The current label for a featured item with a reason is:

 

format.cardView.FeaturedItem

 

<span classnotification.AssessmentProcessAssessorApprover.MessageText7notification.AssessmentProcessAssessorApprover.MessageText7notification.AssessmentProcessAssessorApprover.MessageText7=Please log in and approve or reject the selected raters. You may also make modifications to the list of raters prior to approval/rejection.

 

The default LMS value is:

 

format.cardView.FeaturedItem=<span class="featuredType">Featured Course</span> - {0}

 

All you need  to do is fix the labels so that the appropriate text is shown, by adding the write text I provided you in the locale section of the label.

Keywords

Label catalog,LMS, Security error , 'Rule {0} requires the errorLabel property to have a value'  , KBA , LOD-SF-LMS , SuccessFactors Learning , Problem

Product

SAP SuccessFactors HCM Core 1602