Error when adding files to an existing project - Object reference not set to an instance of an object.

Hi, when adding files to any existing project (with other files translated in it, local project with local biggish TM's), I get this error message: Exception of type LanguagePlatformException occurred: Riferimento a un oggetto non impostato su un'istanza di oggetto. (Object reference not set to an instance of an object.)
It happens when adding in any way the files, quick, drag and drop etc. TM maintence is regularely done. The files are checked and OK.

Any help is welcome

I copy here the saved xml:   

<SDLErrorDetails time="26/07/2023 13:20:44">
<ErrorMessage>Exception of type LanguagePlatformException occurred: Riferimento a un oggetto non impostato su un'istanza di oggetto. Stacktrace: in Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemoryLanguageDirection.SearchTranslationUnitsMasked(SearchSettings settings, SubsegmentSearchSettings subsegmentSettings, SubsegmentSearchCondition condition, TranslationUnit[] translationUnits, Boolean[] mask) in Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.SearchSegmentAndSubSegmentTranslationUnitsMaskedCommand.Execute(T cascadeEntry, SearchSettings searchSettings) in Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.ExecuteSearchCommand(SearchCommand`1 searchCommand, SearchSettings searchSettings, Int32 searchResultsCount, IEnumerable`1& cascadeMessages)</ErrorMessage>
<Exception>
<Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=17.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
<HelpLink/>
<Source/>
<HResult>-2146233088</HResult>
<StackTrace>
<![CDATA[ ]]>
</StackTrace>
</Exception>
<Environment>
<ProductName>Trados Studio</ProductName>
<ProductVersion>Studio17</ProductVersion>
<EntryAssemblyFileVersion>17.1.6.16252</EntryAssemblyFileVersion>
<OperatingSystem>Microsoft Windows 11 Home</OperatingSystem>
<ServicePack>NULL</ServicePack>
<OperatingSystemLanguage>1040</OperatingSystemLanguage>
<CodePage>1252</CodePage>
<LoggedOnUser>DESKTOP-KD47VIM\User</LoggedOnUser>
<DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
<ComputerName>DESKTOP-KD47VIM</ComputerName>
<ConnectedToNetwork>True</ConnectedToNetwork>
<PhysicalMemory>8285468 MB</PhysicalMemory>
</Environment>
</SDLErrorDetails>

  

emoji
Parents
  •  

    When you add files to a Trados Studio project, the software is going to try and connect these files to your project's TM. If there's a problem with this connection, if the TM isn't loaded correctly for example, then you might encounter this error.

    As a test, you could try creating a new project and adding the files to it.  If the problem persists, it's likely an issue with the files themselves or with Trados Studio.  If the problem doesn't occur in the new project, the issue could be with your current project or its associated TM.

    Trados Studio runs on the .NET Framework, and an outdated version might cause issues. The .NET version in use on your computer (4.0.30319.42000) is fairly old so worth updating.

    Also, and this may be the first thing to check in fact, where are your TMs stored?  If your TM's are stored on a cloud service like OneDrive, it might potentially cause issues.  There could be several reasons for this:

    1. File Syncing: Cloud storage services like OneDrive continuously sync files between the local machine and the cloud.  If Trados Studio is trying to access the TM while it's being synced, this could lead to errors.

    2. File Availability: Cloud services sometimes store files online and not locally to save space, and these files need to be downloaded when accessed.  If Trados Studio tries to access a TM that's not available locally, it may lead to issues.

    3. File Locking: When a file is open, OneDrive or other cloud services may lock it to prevent conflicts during syncing.  If Trados Studio is trying to access a TM that's currently locked, it could result in an error.

    4. File Permissions: In some cases, the permissions set for cloud-stored files might prevent Trados Studio from accessing the TM.

    5. Network Issues: If there are network connectivity problems, files stored on a cloud service might not be reliably accessible, causing issues for Trados Studio.

    To avoid these potential problems, it's typically recommended to work with local copies of your files.  You can still back them up to OneDrive or a similar service, but ensure you're working on a local version while using Trados Studio.

    Remember to sync your changes back to OneDrive once you're done working, to maintain your backup.  And always ensure Trados Studio is closed during the sync process, to avoid any conflicts or errors.

    The fact OneDrive comes ready set up for most PC's these days is a real problem in my opinion, and it's not even that simple to remove or turn off!

    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,

    I have the same error when analysing, pre-translating,... files. Tried to update the .NET version on  my computer but that didn't help. Do you have any other suggestions?

    emoji
Reply Children
No Data