Microsoft Translator Provider not authorized error

Hi

We are experience an ‘The request is not authorized because credentials are missing or invalid’ exception when using ‘Microsoft Translator Provider’ as translating provider and using the Pretranslate Batch tasks in Studio 2022 SR2 - 17.2.9.18688 and ‘Microsoft Translator Provider v 1.1.5.0’ on a Windows 10 Pc fully updated as well.

 Error dialog box titled 'Unexpected error' with a red cross icon indicating an error occurred at a file path, and a message stating 'The request is not authorized because credentials are missing or invalid.' with an 'OK' button.

The log file MicrosoftTranslatorProviderLogs.txt contains this error message

MicrosoftTranslatorProvider.Helpers.TagPlacer: 2024-03-19 10:55:59.5864 Error LogException Objektreferencen er ikke indstillet til en forekomst af et objekt.

    ved MicrosoftTranslatorProvider.Helpers.TagPlacer.GetTargetElements()

   ved MicrosoftTranslatorProvider.Helpers.TagPlacer.TryGetTaggedSegment(String returnedText)

   ved MicrosoftTranslatorProvider.Helpers.TagPlacer.GetTaggedSegment(String returnedText) 

MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-03-19 10:55:59.8062 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.

   ved MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)

   ved MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)

   ved MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate) 

We do can pretranslate another smaller file in the same project and same languages, so the credentials are working their. Also if we open the file in Studios editor we get respond from Microsoft Translator Provider when entering a empty segment.

It’s a large file and it contains a lot of tags as well.

Can the error description be misleading and could it be a tag issue instead?

Any ideas? Blush  

Best regards

Rasmus



Generated Image Alt-Text
[edited by: Trados AI at 10:39 AM (GMT 0) on 19 Mar 2024]
emoji