"Extra key" error in the language pack: How to resolve
Problem Statement
You see an "Extra key" error when uploading a language pack. The error message includes the directory path and the entity (addon or plan) causing the issue.
Solution
This error occurs when the language pack contains keys for addons or plans that no longer exist on your site. The pack's keys must match your current site context. Remove the obsolete references and upload again.
Configuration steps
Example: Error shows Extra key: dy.addon.name.Service-Charge-New in de/mandatory/addons.csv. The addon "Service-Charge-New" no longer exists on your site.
- Confirm the addon or plan in the error is deleted or no longer exists.
- Go to Settings > Configure Chargebee > Languages and download the language pack.
- Navigate to the path in the error (for example, de > Mandatory > addons.csv).
- Find and delete the rows that reference the obsolete entity (for example,
addon.name.Service-Charge-New). - Save the file in .csv format.
- Repeat for all entities listed in the error messages.
- Upload the updated language pack.
This error often appears when uploading an older language pack. The language pack keys must match your current site context (addons and plans that exist on your site). After removing obsolete keys, the error should no longer occur.
Was this article helpful?