Microsoft Text Analysis Always returning 0

Hello, I am trying to do the RPA Challenge Movie Search, so I am using the Microsoft Text Analysis Activity, provided the Key and URL from my free trial account on Azure, but somehow whatever text I provide the sentiment result returned always 0, is there a way to debug my communication to the Azure server.
Here’s a snippet of the activity.

Hi,

First, can you check if Options - Analysis Type - Sentiment property is checked?
Next, can you set the string variable to Output - RawResult property and share it?

Regards,

1 Like

Hello Yoichi thanks for helping,

the sentiment property is checked, second I am not sure if you mean to set the variable Output to string because it is set, and what is the RawResult,
i am new to UiPath thank you for your patience.

Hi,

RawResult outputs HTTP response string which contains HTTP Status code. We might be able to estimate the cause from this string.
Can you use WrteLine or MessageBox to output the RawResult string and share?

Regards,

1 Like

Yes here it is,

Hi,

Thank you for sharing your RawResult.

404 means wrong URL. Service URL in the activity should end with /. Can you check it or share your URL?

Regards,

1 Like

I rechecked now my Endpoint URL from Azure its the same,
https://moviechallenge.cognitiveservices.azure.com/

Hi,

How did you get the URL? Did you get the URL from Azure portal which is same as you got API key?

For example, the URL should be like the following.

"https://westcentralus.api.cognitive.microsoft.com/text/analytics/v2.0/"

westcetralus is location of azure dc. This might be changed but other will not change probably.

Regards,

1 Like

I accessed the Overview of my resource on azure, where there is the resource group, status, API Type, etc… and there is the Endpoint which the URL i copied but it seems it is the wrong URL, can you provide the steps please on how to find the required URL?

Hi,

Thank you for sharing your azure portal screen.

Can you try the following URL?

"https://moviechallenge.cognitiveservices.azure.com/text/analytics/v2.0/"

I’m glad if you can share string of RawResult.

Regards,

2 Likes

It Worked!! Thank you very much.
:smiley:
image

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.