Is there a way to check if the project already contains TM?

After creating a project, we would normally add TM, but if the project template already have TM associated, then following error occurs:  

Inner Exception: System.ArgumentException: The combination of Uri and State properties for the main translation providers should be unique within the list of entries.

So, before adding TM, is there a way to check if the project already contains associated TM?

Thank you!
Rieko

Parents
  • Dear Rieko,

    The function "GetTranslationProviderConfiguration" (to be applied to your filebasedproject), will return all the TMs which are already associated to your project, including those coming from the template.

    Regards,

    Laurent

  • Dear Laurent,

    The template I use includes TMs that I would like to use, but following message comes back from RunAutomaticTask: File Analysis

    Unexpected exception when initializing task 'File Analysis': Failed to create an instance of translation provider 'sdltm.http://sdlgroupshare/?orgPath=/Localization NIC&tmName=LV - French - Main Server TM'..

    What could I be doing wrong here?

    Thank you,

    Rieko

  • Dear Rieko,

    Difficult to say what is going wrong. Do you manage to create your project without running the analysis task?

    If yes, I would suggest that you create the project and then try to run the analysis task directly in Studio. This will help you to find out whether the problem is in your code or on the server side?

    Do you only get this error message for the TM you mention? Is the mentioned TM the first one in the list/ sub-organisation?

    Laurent

Reply
  • Dear Rieko,

    Difficult to say what is going wrong. Do you manage to create your project without running the analysis task?

    If yes, I would suggest that you create the project and then try to run the analysis task directly in Studio. This will help you to find out whether the problem is in your code or on the server side?

    Do you only get this error message for the TM you mention? Is the mentioned TM the first one in the list/ sub-organisation?

    Laurent

Children