Error "Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider TM .... "

Hi all,

we are using the Studio API to create projects based on predefined project templates. The service sits on dedicated machine, i.e. this Studio service uses always the same user that has access to all project resources (Groupshare 2015 TMs und termbases).

There are no issues when using project templates with file-based resources or file-based TMs and Groupshare termbases.

When using templates with Groupshare TMs in some cases project creation works, in same cases, even when using the same templates and tranlatable files, the project creation fails (Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider TM ...). Part of the Studio project files are created (folder structure, source and target files, sdlproj file), where it gets stuck is the analyses..

I exclude this causes: access rights to Groupshare TM, available licences on the TM server, errors in the project templates, translation files that are not processed proprerly in Studio.

We have experienced this issue with the Studio 2015 and the Studio 2019 API.

A possible cause could be time-out problems, but I haven't seen any options where you can change/extend any time frames for Studio to complete project creation.

Has anyone experienced similar issues?

Regards,

Bruno Ciola

Parents
  •  Hi all,

    I have similar problem with file base TMs.

    I have application, which is using „Project automation API “, the application is using SDL 2017 and all is OK. But when I migrate it to SDL 2019 SR2 I am getting error, when I am running automatic task (AutomaticTaskTemplateIds.AnalyzeFiles and AutomaticTaskTemplateIds.PreTranslateFiles).

    Error:

    Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'sdltm.file://///pr-TM/client/EN(GB)_CS(CZ)_Broen.sdltm'.., Action: AutomaticTaskExecuter

     

    I am using file base TM.

    I tried to add TM via “automation API” and via sdl project template too. And I still get this error. So, it shouldn’t be mistake with adding TMs.

    But when I create sdl project via “automation API” and after I run tasks manually from studio 2019 everything is working.

    Code for running SDL automatic task:

    public void Analyze (Language lang)

    {              …

                ProjectFile[] files = this.project.GetTargetLanguageFiles(lang);

                AutomaticTask analzyeTask = this.project.RunAutomaticTask(

                    files.GetIds(),

                    AutomaticTaskTemplateIds.AnalyzeFiles,

                    new EventHandler<TaskStatusEventArgs>(CatchTaskStatusEventArgs),

                    new EventHandler<TaskMessageEventArgs>(CatchTaskMessageEventArgs));

                project.Save();

    }

     Can you help?

    Thanks a lot!

    Vladimír

  • Hi,

    The problem was conflict: some plugin with new version of SDL Trados. The problem was only via API directly in Studio it was ok. After uninstalling plugin, it is ok. 

    ( Maybe: Indication for the future is, that studio at the start wrote a message about the plugin and the Studio need close the message.)

    Vladimír

Reply Children
No Data