Project cannot be opened

Hello Paul,

I am using Studio 2022 SR2, on my Mac (with Parallels) but my drives are mapped now.

I received a package with one small file to translate, which I did.

But when I return to the it, the day after, impossible to open the file .sdlproj, that was extracted from the package.

It simply says "the selected project could not be opened".

I tried to open it in different ways, first opening Trados and browsing to the file OR opening the file by clicking on it.

I have tried many times.

The problem is I could not access the ressources in the project and add the ones I was supposed to.

I have no idea where the problem is.

Maybe with a package, it sets up the project and generate the files by default, but not the right way...

I really need to fix this as I am supposed to onboard a very important project with them that will start in a few weeks and the agency is one of the best ones.

Please also give me alternatives as to how get help other than from this forum...

Thank you very muchError dialog box on Trados Studio software with the message 'The selected project could not be opened' and an OK button.



Generated Image Alt-Text
[edited by: RWS Community AI at 1:07 PM (GMT 1) on 15 Apr 2025]
emoji
Parents
  •  

    Can you:

    Error dialog box with a red 'X' icon stating 'The selected project could not be opened.' with an 'OK' button and a tooltip saying 'Click here'.

    Then save the file to your desktop and then attach it to your reply to this post.

    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


    Generated Image Alt-Text
    [edited by: RWS Community AI at 1:36 PM (GMT 1) on 15 Apr 2025]
  • <SDLErrorDetails time="15/04/2025 14:52:19">
      <ErrorMessage>The selected project could not be opened.</ErrorMessage>
      <Exception>
        <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=17.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
        <HelpLink />
        <Source>Sdl.ProjectApi.Implementation</Source>
        <HResult>-2146233088</HResult>
        <StackTrace><![CDATA[   at Sdl.ProjectApi.Implementation.Repositories.ProjectRepository.Load(String projectFilePath)
       at Sdl.ProjectApi.Implementation.Project.Load(String projectFilePath, Boolean createProjectListItem)
       at Sdl.ProjectApi.Implementation.Project..ctor(IProjectsProvider projectsProvider, String projectFilePath, Boolean licenseOverrideRequired, IProjectRepository repository, IProjectOperation operation, IEventAggregator eventAggregator)
       at Sdl.ProjectApi.Implementation.Repositories.ProjectsProviderRepository.LoadNewProject(String projectFilePath, IProjectsProvider projectsProvider, IProjectOperation projectOperation)
       at Sdl.ProjectApi.Implementation.Repositories.ProjectsProviderRepositoryLC.LoadNewProject(String projectFilePath, IProjectsProvider projectsProvider, IProjectOperation projectOperation)
       at Sdl.ProjectApi.Implementation.ProjectsProvider.ImportProject(String projectFilePath)
       at Sdl.TranslationStudio.ProjectManagement.ProjectsView.ProjectsViewService.AddProjects(IEnumerable`1 projectsFilePaths)]]></StackTrace>
        <InnerException>
          <Type>System.IO.DirectoryNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
          <HelpLink />
          <Source>mscorlib</Source>
          <HResult>-2147024893</HResult>
          <StackTrace><![CDATA[   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
       at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
       at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
       at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
       at System.Threading.CompressedStack.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
       at System.Xml.XmlTextReaderImpl.OpenUrl()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlTextReader.Read()
       at System.Xml.XmlReader.MoveToContent()
       at Sdl.ProjectApi.Implementation.Migration.AbstractFileMigration.GetFileVersion(String filePath)
       at Sdl.ProjectApi.Implementation.Migration.AbstractFileMigration.Migrate(String filePath)
       at Sdl.ProjectApi.Implementation.Repositories.ProjectRepository.Load(String projectFilePath)]]></StackTrace>
        </InnerException>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio17</ProductVersion>
        <EntryAssemblyFileVersion>17.2.12.19268</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Professionnel</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1036</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>MARIE-PIERREPC\marie-pierrekoch</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>MARIE-PIERREPC</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>4171088 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    emoji
  •  

    Thanks... I think the most likely explanation is that the mapped drive (e.g. \\Mac\Home\...) was either:

    1. remapped with a different path, or
    2. not available or visible to Windows (Parallels) at the time Trados tried to access the project again.

    When Trados loads a project, it doesn’t just look at the .sdlproj file, it tries to validate all file paths listed in it, including:

    • the source file(s)
    • the target file(s)
    • translation memories
    • termbases
    • any references in the ProjectSettings.xml

    If any of those point to paths like \\Mac\... and they are temporarily unreachable (e.g. network mapping delayed, Parallels not mounting properly, etc.), then Studio will fail to load the project altogether - hence the DirectoryNotFoundException.

    But having said this, it could also be related to OneDrive on Windows.  Trados Studio relies on immediate, local availability of all files referenced in a project.  When OneDrive is enabled Files may not really be disk.  OneDrive may display files and folders, but they are marked as "online-only".  So when Studio attempts to read or verify a file (e.g. the SDLXLIFF or a TM), if that file hasn’t been downloaded locally yet, it will throw a DirectoryNotFoundException or FileNotFoundException.

    So if you signed out of OneDrive or the sync path was altered (e.g. C:\Users\marie-pierrekoch\OneDrive\Documents becomes C:\Users\marie-pierrekoch\OneDrive - CompanyName\Documents), then Studio will no longer be able to resolve paths in the .sdlproj file.  Even if the files do exist, if OneDrive hasn't finished syncing or hasn't made them available to the system yet when Studio starts loading, it will still error out.

    Unfortunately working with a MAC does add some complexity to your process.

    Perhaps you can confirm some of this (in terms of what you are doing) to help troubleshoot this further?

    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
  • Thank you for your reply Paul but I do not think it is the mapping.

    I do not use One Drive, so this one is out.

    I am attaching the path of all files to show you.

    The only thing might be in the Project Settings that were by default, but as I cannot open the project, I cannot see neither change the settings...

    Screenshot of a file explorer window with a directory path leading to a Trados Studio project. Folders for different languages and a project file named '1319028_PT-FR.sdlproj' are visible.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 3:07 PM (GMT 1) on 15 Apr 2025]
  • What I do not understand and that I do not see in the documentation to learn from, is where to save the different files...I do not understand the logic of Trados. I have no clue where to save the files of a package, the TM, the project, the xliff files...You told me to create one folder with all the projects and then another one with all the TM, but then I need to create folders for each clients! For me it s not logic, I prefer saving the packages I receive in the folder dedicated to my clients. And then I do not know where to save the final versions...That is maybe why Trados do not find the files...I have no clue. But I see that my mapping is good.

    I hope you understand what I am saying.

    emoji
Reply
  • What I do not understand and that I do not see in the documentation to learn from, is where to save the different files...I do not understand the logic of Trados. I have no clue where to save the files of a package, the TM, the project, the xliff files...You told me to create one folder with all the projects and then another one with all the TM, but then I need to create folders for each clients! For me it s not logic, I prefer saving the packages I receive in the folder dedicated to my clients. And then I do not know where to save the final versions...That is maybe why Trados do not find the files...I have no clue. But I see that my mapping is good.

    I hope you understand what I am saying.

    emoji
Children
  •  

    I have no clue where to save the files of a package

    One of the strengths of Trados is that you can choose where you save your projects and resources.  If you go with the defaults Trados will always put everything within a structure in your Documents folder.  But you don't have to work that way.

    You can create projects for each customer within the folders of each customer if you prefer, and also save the final versions in there.  You can create projects in one place so all your projects always go to one place (making it easier to find them) but save your final versions in your customer folders.  It is entirely up to you.

    You can even create project templates for each of your customers so the creation of projects becomes really well managed as the templates will tell Trados where to put the projects, which TMs and TBs to use, which language flavours are needed for that customer, which QA rules etc.  Essentially you can customise Trados as much, or as little as you like.

    The important thing to know is that it's the projects.xml file that records where everything is in relation to the projects overall, and it's the sdlproj for each project that records where the resources are that you're using.

    So there really isn't anything complicated about this.

    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