Can't change system language after importing from jira

I've finished importing tasks from jira project
But my problem is that I've lost ability to change system language.
The UI just shows red message:
"Constrains validation exception. Causes: 1: Localized name should be unique 2: Localized name should be unique"
 
In the error logs I can see exception:
 
ERROR [UserActionJob       ] [UserActionJobProcessor                            ] [init] Exception on executing user action
jetbrains.exodus.database.exceptions.ConstraintsValidationException: Constrains validation exception. Causes:
  1: Localized name should be unique
  2: Localized name should be unique

    at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.executeBeforeFlushTriggers(TransientSessionImpl.java:736)
    at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.beforeFlush(TransientSessionImpl.java:994)
    at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flushChanges(TransientSessionImpl.java:750)
    at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flush(TransientSessionImpl.java:211)
    at jetbrains.dnq.lang.TransactionsKt.flush(Transactions.kt:26)
    at jetbrains.youtrack.localization.service.LocalizationService$getFlusherITranslator$1.toLocale(LocalizationService.kt:152)
    at jetbrains.youtrack.localization.service.LocalizationService.runTranslation$youtrack_localization_main(LocalizationService.kt:110)
    at jetbrains.youtrack.localization.service.LocalizationService$changeLocale$job$1.run(LocalizationService.kt:69)
    at jetbrains.charisma.persistent.UserActionJob.executeAction(UserActionJob.java:40)
    at jetbrains.charisma.persistent.UserActionJob.execute(UserActionJob.java:28)
    at jetbrains.exodus.core.execution.Job.run(Job.java:99)
    at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:132)
    at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doExecuteJob(JobProcessorQueueAdapter.java:238)
    at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:159)
    at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:110)
    at jetbrains.exodus.core.execution.ThreadJobProcessor$1.run(ThreadJobProcessor.java:43)
    at java.lang.Thread.run(Thread.java:748)
 
 
Also in logs I can see several lines like this (don't know if its relevant):
Cannot translate enum with name <NNN> because enum with that name exists
 
Where NNN - non-english names of states and issue types from JIRA
 
 
What should I do with these errors? How can I enable language translation?
0
5 comments
Avatar
Liubov Melnikova
Official comment

There are two ways to handle this:

1. Create import on the clean database, but first change the language.

2. Or you need to rename custom fields, then redo the import

Avatar
Liubov Melnikova

Hello,

 

We have a workaround for such situations, but I need to know, which language are you using?

0
Avatar
Permanently deleted user

Russian

0
Avatar
Permanently deleted user

Any news about workaround? :)

0
Avatar
Liubov Melnikova

Please see my "Official comment" on the top of the list

 

0

Please sign in to leave a comment.