Error Message: "This project already contains a source file named", what to do?

Hello,

I have created an excel file to translate via Studio2019 (Freelance Edition). However, I need to adjust a few things in the file, so I removed it from the list and made the adjustments and then tried to add it again to the project I am working on.

After I did the adjustments, I started receiving the error message "This project already contains a source file named", every time I add the file to the project. 

I made sure that the source folder and the target folder do not contain that file, and they don't. So I am not sure why Studio says that it exists. 

Can you please advise? 

Thanks in advance!

  • Hello ,

    I don't think UI have seen this personally before and we dont have a lot of information to go on yet.
    Maybe you could post the full err and post some images to help us visualise this-
    community.sdl.com/.../4159.how-to-get-help-quickly-in-the-sdl-community-technical-forums

    Also it would be good to know what you were working on before trying to add the file?
    Was this is a PPX by any chance?
    Have you tried recreating the project?

    Lydia Simplicio | 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

  • Hello ,

    Thank you for your help! I have indeed failed to find any answers. I will do as you advised.

    Regarding your questions:
    - I was creating that excel file and I opened it for translation. Then, I noticed that I forgot to remove a few things, so I removed the file from the project, and deleted the source and the target files in the folder of the project on my PC. Then I fixed my file and tried to add it again to the project by "add file" option, but this error kept appearing. The only solution was for me to re-name that file and add it, so Studio won't say "This project already contains a source file named <file name>", and it worked. However, I know this isn't an ideal solution because the error will reappear if I'll try to use the same file name. So I was hoping to know how to adjust files that I have already added to Studio2019 without getting this error.

    - I wasn't working on PPX and I didn't try to recreate the project.
  • Hi  

    It sounds as though you have not really removed the file from your project and it is still referenced in the sdlproj. If you do things like this in Studio 2019 I think the easiest way to replace the file is to use the Right-Click -> Update File. This option will simply replace the existing file with your new one, and even better, if you have partially translated the original it will make sure that anything in the new file that translated before is still translated now. This is one of the best new features in Studio 2019.

    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

  • Hi Paul, thank you for this tip! I used it yesterday and everything went so smoothly :)
  • I have landed here today, because I find myself presently in the same situation as Noha L;

    In a project I got an error message for one specific sdlxliff file:

    "The document cannot be processed since it contains unexpected contents."

    This file could not be analysed and could not be opened in the project for translation.

    So I decided to replace the file with a previous version of the same file (with same file name), to see if the previous version would work without an error.

    So in the files view I selected the file and in the context menu selected "Delete files" and deleted it. So it disappeared from the list.

    I made sure that it was physically removed from the location on the hard drive and then tried to add the previous version of this file in its place. This is when I got the error message:

    "Warning
    This project already contains a source file named [filename]"

    So now I read your suggestion "Right-Click -> Update File", which I would like to try out, but the problem is, the file is gone from the project, doesn't appear in the list any more, and I can't get it back into the project any more with "Add files" (because of the warning that the project already contains it.)

    But this file is neither in the file list of the project nor physically in the project folder on the hard drive.

    For the moment I am out of ideas on how to get this file back into the project.

  • Hello

    After Paul helped me fix this problem, I have found myself in it a few time after. 

    When I remove the file from Studio and from my desk, I can't seem to be able to add it to Studio with the same file name, so I rename the file and add it to Studio, and it works fine after. I am still not sure why the old name stays in the memory of Studio. But I think I learned to avoid removing the file from Studio and my PC, instead, I just update it (as suggested by Paul). 

    I hope that helps. And I hope someone can advise on the issue of how to add the same file with the same name without the need to rename it.

    Have a good day/night,

    Noha

  • This thread is 2 years old, but I stumbled onto your problem.

    https://docs.sdl.com/791864/555677/sdl-trados-studio-2017/deleting-project-files

    After selecting the source language on the navigation pane (left side) and deleting the file that was hiding with the same name, it finally let me add a file with the original name.

    Hope this helps anyone else in 2021. 

  • Hi Jordan,

    this sounds like a solution I would like to try since I experience the same problem with files that are neither visible in the files list of a project, nor possible to edit "because it already contains a file with the same name". 

    However, I can't seem to find "source language on the navigation pane (left side)". May you post a screenshot of where you click?

    Thanks!

  • Don't know if you're still having this issue since it's been 4 years, but "source language on the navigation pane (left side)" can be found by going to the Files view and then on the Files navigation pane (left of the UI) you'll find a section named Filter Files with a text input labeled "File name:" and a drop down labeled "Language:". You can then select the source language on the drop down. Hope that helps!

    Screenshot of Trados Studio's Files view with Filter Files section showing a text input labeled 'File name:' and a dropdown labeled 'Language:' set to English (United States). Below are Project folders with 'Manaus UTOPIA FX', 'My Tasks', and 'Sent Tasks'. 

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 10:48 AM (GMT 0) on 24 Jan 2025]