Microsoft Translate text activity

Hi All,
I am using Microsoft translate text activity to translate the text, but i am getting the following error:
"Translate Text: The request is not authorized because credentials are missing or invalid. "

Can anyone please help me!

Hi,

You need to set your API key which you got from Azure portal, in SubscriptionKey property. Do you have proper API key?

Regards,

Hi @Yoichi,
Yes i have signed up for Microsoft azure and created a translator resource.
I am using the key which under cognitive service API section.

Hi,

Did you get key from the below page? Is Your ENDPOINT URL same as URL in the below page?

Regards,

instead of api.cognitive in endpoint i have URL as:
https://{NAME}.cognitiveservices.azure.com/.

When I had created the translator key, It asked me the name for the same(which is NAME in above URL). I was wondering if you had created the key then why the name “TextTranslator2” at the top is not present in ENDPOINT URL. Because thats how my ENDPOINT URL is.

Hi Yoichi,
I observed one thing here that your ENDPOINT URL ends with microsofttranslator.com, and mine is something like this: https://NAME.cognitiveservices.azure.com/.
Do you think this can be the cause for the credentials error? Or the ENDPOINT url wont affect?

1 Like

Hi,

I just created another translator resource, and its ENDPOINT is https://[name].cognitiveservices.azure.com/

I think Microsoft changed rule of ENDPOINT URL. Unfortunately as Translate Text activity does not have property for ENDPOINT, it seems difficult to work with recent API key.
Perhaps we should raise ticket to creator of this activities package.

Edit: I just raised a bug report.

Regards,

1 Like

Hi,
Yes, looks like the the Translator text activity wont support with the recent API usage technique. The activity must be updated with Subscription URL,id and key or there must be some other way.
Thanks for reporting the bug. Can you share with me the details of the issue report?

1 Like

Hi,

I posted bug report described this topic from the above page.
However this activity is community support, so it depends on the creator whether the matter will be solved.

Regards,