An item with the same key has already been added - Trados Studio R2- 241/01/24

Hi!

I've been having problems with Studio R2 since December last year after I downloaded some plugins. After that, whenever I opened Studio, it would give me an error message. This was reported, but never got round to sort it out because I decided to upgrade my computer and then the holiday period came. 

Now, I'm installing Studio again in this new computer, and it gives me this error message. 

Error message popup on Trados Studio stating 'An item with the same key has already been added.' with Knowledge Base and Community buttons.

An this is the error file. 

XML error file open in a text editor showing details of the error 'An item with the same key has already been added' with system and environment information.

I remember that my problem I had in December was that the folder Studio 17 was not showing on AppData>Roaming>Trados>Trados Studio>Studio 17. Only Studio showed, which I believe it's for Studio 21, correct  ? Ok now that it shows, I have two folders: 

File explorer window showing folders '17' and 'Studio17' and a file 'VersionManager.xml' with their respective modification dates.

Foder 17 has all the plugins, packages and unpacked. 

I suspect one or more of these may be causing the problem, but do I know?

Now, I go to Studio 17>logs, and I can see a bunch of  txt files. This is the latest from today: 

INFO [2024-01-24 09:36:20,268] TradosStudio.PushNotificationProvider.SignalRClient - Initializing client
INFO [2024-01-24 09:36:25,580] Sdl.Desktop.Platform.Implementation.Studio - Starting application service.
WARN [2024-01-24 09:36:25,594] Sdl.BestMatchServiceStudioIntegration.Common.Account.Credential.SecureCredentialFile - Error reading credentials file
System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 
   at System.Convert.FromBase64_ComputeResultLength(Char* inputPtr, Int32 inputLength)
   at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
   at System.Convert.FromBase64String(String s)
   at Sdl.Desktop.Platform.Encryption.AesCbcCipherText.FromBase64String(String data)
   at Sdl.Desktop.Platform.Encryption.EncryptionProviderNet4.Decrypt(String cipherText)
   at Sdl.BestMatchServiceStudioIntegration.Common.Account.Credential.SecureCredentialFile.ReadFileData()
   at Sdl.BestMatchServiceStudioIntegration.Common.Account.Credential.SecureCredentialFile.Read()
INFO [2024-01-24 09:36:25,596] Sdl.TranslationStudio.LanguageCloud.Startup.LanguageCloudLogin - Language Cloud login failed.
INFO [2024-01-24 09:36:25,652] Sdl.TranslationStudio.ProjectManagement.AutoDeleteOnStartup - Deleting temporary files
FATAL [2024-01-24 09:36:26,963] Sdl.Desktop.Platform.UnhandledException - An item with the same key has already been added.
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Sdl.Desktop.Platform.Implementation.StudioWindow.Init(IEventAggregator eventAggregator)
   at Sdl.Desktop.Platform.Implementation.Studio.CreateWindowInternal(Boolean setActive, IEventAggregator eventAggregator)
   at Sdl.Desktop.Platform.Implementation.Studio.Run(ISplashScreen splashScreen, IPluginLoaderService pluginLoaderService, ICommandLineParsingService commandLineParsingService, IUserSettingsService userSettingsService, IEnumerable`1 startUpActions, ILicensingService licensingService)
   at Sdl.TranslationStudio.Application.Launcher.RunApplication()
INFO [2024-01-24 09:36:26,968] Sdl.Desktop.Platform.UnhandledException - An item with the same key has already been added.#ProcessName=SDLTradosStudio#PhysicalMemorySize=182874112#VirtualMemorySize=95293440#ThreadCount=28#HandleCount=1356#GdiHandleCount=73#UserHandleCount=54#TotalProcessorTime=00:00:04.1562500

Any idea what's going on? My IT skills seem to be quite limited now Disappointed

Many thanks for your support! Slight smile

Carina 



Generated Image Alt-Text
[edited by: Trados AI at 1:20 PM (GMT 0) on 29 Feb 2024]
  • Hello Carina,

    I'm sorry to hear about the issues you've been experiencing with Trados Studio R2. Based on the error message you're receiving, it seems like there might be a conflict with one or more of the plugins you've installed. Here's how you can troubleshoot this issue:

    Step 1: Close Trados Studio.

    Step 2: In your Windows Search, type "RWS Plugin Management" and open it.

    Step 3: Check if you have duplicate plugins installed. If you do, this could be causing the issue.

    Step 4: Uninstall one of the instances of the duplicate plugin.

    Step 5: Open Trados Studio and check if the error persists.

    Alternatively, you can also check for duplicate plugins within Trados Studio itself:

    Step 1: Open Trados Studio and go to the Add-Ins tab.

    Step 2: Click on the Plug-Ins tab and see if any of the installed plugins appear twice.

    Step 3: Un-tick one of the duplicated plugins, then close Trados Studio.

    Step 4: Uninstall the plugin from RWS Plugin Management.

    Step 5: Open Trados Studio again and check if the error persists.

    Please note that this issue can also occur in Tridion Sites - Translation Manager. If the problem persists after following these steps, it might be best to uninstall all plugins, then reinstall them one by one to identify which one is causing the issue.

    I hope this helps! Let me know if you have any other questions.

    Best regards,

    RWS Community AI

    emoji
  • RWS Plugin Management

    This folder does not appear on my Windows Search. 

    Windows search results showing 'No items match your search' for RWS Plugin Management.

    I cannot uninstall any plugins directly from Studio because I cannot even open the application!

    Ideas? Thanks! 

    C

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 1:20 PM (GMT 0) on 29 Feb 2024]
  •  

    A bit of a hallucinogenic response I think!

    I suggest you reset.  I don't see an obvious problem with a plugins so perhaps go a bit wider.  To do this just close Trados Studio and then rename this folder:

    c:\Users\%username%\AppData\Roaming\Trados\Trados Studio\

    to c:\Users\%username%\AppData\Roaming\Trados\Trados Studio_old\

    If you can't find this folder then you need to unhide your hidden files/folders:

    Then restart Trados Studio and see if that helped.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Hi Paul,

    Thanks for your message. I did try your suggestion. After rebooting the computer, I opened Trados and it seemed to work. A screen opened prompted me to choose between 3 user profiles: default, Traods or SDL. I chose Default. Next up, we're coming back to square one, and the same message as before 

    An item with the same key has already been added

    I've saved a new error file: 

    <SDLErrorDetails time="24/01/2024 15:37:39">
      <ErrorMessage>An item with the same key has already been added.</ErrorMessage>
      <Exception>
        <Type>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <ParamName />
        <HelpLink />
        <Source>mscorlib</Source>
        <HResult>-2147024809</HResult>
        <StackTrace><![CDATA[   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
       at Sdl.Desktop.Platform.Implementation.StudioWindow.Init(IEventAggregator eventAggregator)
       at Sdl.Desktop.Platform.Implementation.Studio.CreateWindowInternal(Boolean setActive, IEventAggregator eventAggregator)
       at Sdl.Desktop.Platform.Implementation.Studio.Run(ISplashScreen splashScreen, IPluginLoaderService pluginLoaderService, ICommandLineParsingService commandLineParsingService, IUserSettingsService userSettingsService, IEnumerable`1 startUpActions, ILicensingService licensingService)
       at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio17</ProductVersion>
        <EntryAssemblyFileVersion>17.2.9.18688</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 11 Home</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>2057</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>CARINA-PC\New User</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>CARINA-PC</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>16631544 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    Look forward to your suggestions,  

    Carina 

    emoji
  •  

    Can you also make sure you don't have anything in these locations?

    %APPDATA%\Trados\Trados Studio\17\Plugins

    %LOCALAPPDATA%\Trados\Trados Studio\17\Plugins

    c:\ProgramData\Trados\Trados Studio\17\Plugins

    If you do then delete everything in these folders.  If you still have a problem after that I'll create a ticket so we can get some support for you.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Hi Paul,

    %APPDATA%\Trados\Trados Studio\17\Plugins

    I don't have this location. I have AppData>Local/LocalLow/Roaming:

    1. AppData>Local>Trados>Trados Studio>17>Plugins: there are two folders "packages" + "unpacked" - both folders are empty; unless you want me to delete the folders?

     

    c:\ProgramData\Trados\Trados Studio\17\Plugins

    same as above, two folders: ""packages" + "unpacked" - both folders are empty.

    Ideas? Thanks for your support  

    C

    emoji
  • ok - I think this is probably related to your profile somehow. But to make sure I have logged a support case on your behalf. We do prioritise customers who have a support contract so please keep in mind it could take up to 48 hours, especially over a weekend, but rest assured we will contact you as soon as we can. You will be contacted at the email address used for this Community. Support Case Id : 00835266 .

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji