API cannot find default project template

Hi,

I've updated my version of Trados Studio 2017 to the latest 14.1.10015.44945 and the tools we have build that uses the Studio API is having issues now when creating new project.

When we create a new project without a template we get this error:

Result StackTrace:
at Sdl.ProjectAutomation.FileBased.FileBasedProject.GetDefaultProjectTemplateReference()
at Sdl.ProjectAutomation.FileBased.FileBasedProject..ctor(ProjectInfo projectInfo)
...
Result Message:
Test method Selingan.Trados2017Worker.Tests.CreateProjectStepTests.CreateProjectStepTest threw exception:
System.InvalidOperationException: Could not find the default project template. Run SDL Trados Studio to initialize the default project template.

The first thing we've tried was to run TS, but all look fine there, everything seems to be initialized properly and I can create a project manually without problem.

All those test were running fine in previous versions of Trados.

Is there some registry information we can update to avoid the error? Or something specific to do on the TS side that would somehow reset the location of the default project template?

Any pointer would be appreciated.

Thanks
-yves

Parents
  • Hi all,

    We have just recently encountered this error with Studio 2021 (SR1 CU4) while trying to create a project using no template through Studio API in a Windows service running under a managed service account.

    You cannot run any desktop application using an MSA account, so it is impossible to "initialise" Studio the standard way, by running it for the first time.

    The solution for us was the following (at least this seems to have worked so far):

    • Run Studio using the admin user account on the server
    • Copy the whole Studio 2021 subfolder from the admin account's Documents subfolder into the MSA account's subfolder
    • Copy the whole %appdata%\SDL\SDL Trados Studio\Studio16\ subfolder into the same for the MSA account

    Is there an official way to "initialise" Studio for an MSA account, in order to use Studio API "properly" from within a Windows service?

    Thanks,

    Attila 

Reply
  • Hi all,

    We have just recently encountered this error with Studio 2021 (SR1 CU4) while trying to create a project using no template through Studio API in a Windows service running under a managed service account.

    You cannot run any desktop application using an MSA account, so it is impossible to "initialise" Studio the standard way, by running it for the first time.

    The solution for us was the following (at least this seems to have worked so far):

    • Run Studio using the admin user account on the server
    • Copy the whole Studio 2021 subfolder from the admin account's Documents subfolder into the MSA account's subfolder
    • Copy the whole %appdata%\SDL\SDL Trados Studio\Studio16\ subfolder into the same for the MSA account

    Is there an official way to "initialise" Studio for an MSA account, in order to use Studio API "properly" from within a Windows service?

    Thanks,

    Attila 

Children
No Data