When trying to upload a captions/translations language package under Administration > General Settings > Localization, we get an error "Error 500 - Internal Server Error".
app-ca.log shows the following error:
Error message: ERROR: duplicate key value violates unique constraint "cmn_captions_nls_bkup_u1"
Detail: Key (pk_id, table_name, language_code)=(5xxxxxx, BPM_DEF_STAGES, no) already exists.
Executed:
insert into cmn_captions_nls_bkup (id
, table_name
, pk_id
Version: 15.9.3
Possibly due to upload of language package from a different environment into the environment with the issue. This could possibly cause a mismatch in IDs that get inserted into the cmn_captions_nls_bkup table.
SELECT COUNT(*) FROM CMN_CAPTIONS_NLS_BKUP;
SELECT DISTINCT LANGUAGE_CODE FROM CMN_CAPTIONS_NLS_BKUP;