Issue with RunAutomaticTask after upgrading to Trados 2024

Dear Community,

 

We recently upgraded our automation, developed using the .NET SDK, from Trados Studio 2021 to Trados Studio 2024.

 

After the upgrade, the following function in FileBasedProject, which works without issues in the 2021 version, now causes an error:

 

AutomaticTask projectTmTask = project.RunAutomaticTask(

    targetFiles.GetIds(),

    AutomaticTaskTemplateIds.PopulateProjectTranslationMemories,

    (sender, taskStatus) => {

        update_action_status(position_trados_action_id, sender, taskStatus, position_counter, position_count);

    },

    (sender, scanMessage) => {

        update_action_message(position_trados_action_id, sender, scanMessage);

    }

);


The error is: Unable to find the specific file. We assume that the projectTM (file based) can not be created.

Has there been a change in this method’s usage or parameters in the 2024 SDK?

Are there any known adjustments required when upgrading this functionality?


We are still using the project template from Trados Studio 2021 that we have been using before. Should we update it?

Here is a screenshot that shows the error from Visual Studio:

Visual Studio HTML Visualizer showing an error message: Unable to find the specified file.

Looking forward to any feedback!



Generated Image Alt-Text
[edited by: RWS Community AI at 2:21 PM (GMT 1) on 18 Jul 2025]
emoji
Parents
  • We analyzed the issue with the Trados Connector 2024 in detail this weekend.
    It turns out that the project TM is created incorrectly by Trados 2024. With the same configuration, everything works perfectly in Trados 2021.

    We isolated the API function for project TM creation from Trados and performed various tests with modified configurations to systematically rule out possible causes.
    The following insights were gained:

    • The project template as well as project parameters (e.g., TM search depth) have no influence on the issue.
    • Without an attached TM, the project can be created without problems.
    • As soon as a TM is attached, the creation of the project TM fails. It does not matter which TM is used.
    • In a test scenario where an empty project TM should be created, we executed the same action with both Trados 2021 and 2024:
      • In both cases, a TM with exactly the same file size of 456 KB (466,944 bytes) is created.
      • Both files are shown as ANSI-encoded in Notepad++.
      • However, comparing the files in Notepad++ shows they are different.
      • The TM from Trados 2021 can be opened as expected and is empty (as it should be).
      • The TM from Trados 2024 cannot be opened: the attempt to open it ends in an unspecific error.

    Here the TMs from Trados 2021 and 2024:

    TMs.zip

    We checked all packages again, and they are from Trados 2024 and the latest we could find.
    This allows us to rule out issues with write permissions or file paths.
    We suspect the TM created by Trados 2024 is corrupted.

     

    Does anyone have any ideas or suggestions?

    emoji
Reply
  • We analyzed the issue with the Trados Connector 2024 in detail this weekend.
    It turns out that the project TM is created incorrectly by Trados 2024. With the same configuration, everything works perfectly in Trados 2021.

    We isolated the API function for project TM creation from Trados and performed various tests with modified configurations to systematically rule out possible causes.
    The following insights were gained:

    • The project template as well as project parameters (e.g., TM search depth) have no influence on the issue.
    • Without an attached TM, the project can be created without problems.
    • As soon as a TM is attached, the creation of the project TM fails. It does not matter which TM is used.
    • In a test scenario where an empty project TM should be created, we executed the same action with both Trados 2021 and 2024:
      • In both cases, a TM with exactly the same file size of 456 KB (466,944 bytes) is created.
      • Both files are shown as ANSI-encoded in Notepad++.
      • However, comparing the files in Notepad++ shows they are different.
      • The TM from Trados 2021 can be opened as expected and is empty (as it should be).
      • The TM from Trados 2024 cannot be opened: the attempt to open it ends in an unspecific error.

    Here the TMs from Trados 2021 and 2024:

    TMs.zip

    We checked all packages again, and they are from Trados 2024 and the latest we could find.
    This allows us to rule out issues with write permissions or file paths.
    We suspect the TM created by Trados 2024 is corrupted.

     

    Does anyone have any ideas or suggestions?

    emoji
Children
No Data