2222231 - Why labels with bracket in the label IDs can't be imported into LMS?

SAP Knowledge Base Article - Public

2222231 - Why labels with bracket in the label IDs can't be imported into LMS?


Why labels with bracket in the label IDs can't be imported into LMS?

I imported a label as below via the label import tool but was not able to locate it in the instance after that.



Learning Management System-LMS

Reproducing the Issue

1. Create the label import txt file which contains below list of labels

data.menu.mylabel1(CSV)=My Label1 (CSV)

data.menu.mylabel2CSV=My Label2 (CSV)

data.menu.mylabel3(PDF)=My Label3 (PDF)

data.menu.mylabel4PDF=My Label4 (PDF)

2. Go to System Admin->Tools->Label Import/Export and follow the steps to  import this label to an active Locale in my instance such as English Canadian


3. After Import is successful, go to System Admin->Tools->Label Import/Export, select Export Label, and search for label value contains 'My Label', only below two labels are listed:

data.menu.mylabel2CSV=My Label2 (CSV)

data.menu.mylabel4PDF=My Label4 (PDF)




This is an expected behavior. Label ID's cannot contain special characters. Java properties file key=value would not allow special characters in the key part.

When a custom report is imported, it can have names like - mylabel(PDF). And system creates a new label 'data.menu.mylabel(PDF)' with value 'MyLabel(PDF)'. The value can be edited in References -> Geography -> Labels. But such labels cannot be created in the References or imported via Admin label import tool since those processes will be validated by the rule of Java properties file key=value.


Please do not use special characters in the label ID (Key). You could potentially append values like:



label, special character, customreport , KBA , LOD-SF-LMS , SuccessFactors Learning , LOD-SF-LMS-REP , Reporting Data , How To


SuccessFactors Learning 1207 ; SuccessFactors Learning 1210 ; SuccessFactors Learning 1302 ; SuccessFactors Learning 1305 ; SuccessFactors Learning 1308 ; SuccessFactors Learning 1311 ; SuccessFactors Learning 1405 ; SuccessFactors Learning 1408 ; SuccessFactors Learning 1508