Symptom
What is the solution to follow when Country codes show up in place of Country names?
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
Employee Central - Localization
Reproducing the Issue
- Go to Home Address of any employee and click on Country dropdown
- Country codes are displayed in the dropdown instead of Country names.
Cause
Configuration Issue:
This can indicate a configuration issue, such as missing translations for the country in question.
MDF Cache:
MDF Cache needs to be refreshed. This scenario rarely occurs when MDF configurations are sync'ed from one instance to another whilst other objects are also being updated at the same time, and the cache might become stale or not fully refresh.
Resolution
- Check Configuration
- First check that Labels and Translations are properly maintained for the Country:
- Go to Admin Center > Manage Data
- Search for the MDF Object "Country"
- Verify that the Country has a Label & Translations
- Alternatively, you can go to Admin Center > Import and Export Data, and export the Country Object data to check all Countries.
- Refresh MDF Cache
- If all the Labels are set correctly, perform a manual MDF Cache Refresh by changing the Country name in any of Translation as mentioned in article 2222723.
- Once you have changed the Label and saved, you can immediately revert the Translation label back to the original value. This will trigger the cache to be refreshed.
- Before refresh:
- After refresh:
- If the cache is successfully refreshed, you will find the country name instead of code now appearing in the related menu's.
- If this does not resolve the problem and the Country Code is still displayed instead of the label this might indicate that the MDF Cache Refresh did not trigger which would require manual triggering or possibly even a configuration issue.
- Refresh MDF Cache from Instance and Provisioning
- Go to Admin Center and search for OData API Metadata Refresh and Export.
- For Cache, click Refresh.
- Logout of your Instance and go to Provisioning.
- Click the Company ID in Provisioning.
- Look for MDF Cache Tool > Clear Cache.
- Then, click on the "Click to clear cache" button.
- Login back to your Instance. In Admin Center and search for OData API Metadata Refresh and Export.
- For Cache, click Refresh again to make sure everything is clean.
- Logout of your Instance. In a new browser session, log in back to your Instance.
- Check if the Country Code continues showing in the Profile instead of the Labels.
Therefore, if you continue to experience this problem, please raise an case with SAP Cloud Product Support, and provide this article's number as well as a brief recap of the issue.
@Cloud Product Support: Refer to the Internal Memo for more details.
See Also
2222723 - How to Change Country Name and Translations
2826293 - Country code showing Instead of Country Name for Country Fields
2171588 - OData API Metadata Refresh and Export - SuccessFactors
Keywords
country code, country name, cache, refresh, mdf country, business address, national id, mdf cache refresh, iso country code, , KBA , LOD-SF-EC-PER-ADR , Home Adress - Config, Rules, RBP, UI , Problem