Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
aggarwal25
Frequent Visitor

text analytics API error

Hi,

 

I am trying to do text analytics in Power BI. However everytime I invoke customer function, i get the follwing error:

 

Picture1.png

 

"An error occurred in the ‘’ query. DataSource.Error: Web.Contents failed to get contents from 'https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment' (400): Bad Request
Details:
DataSourceKind=Web
DataSourcePath=https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment
Url=https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment"

 

What could be the possible reason. Any help would be aprreciated.

 

Thanks

2 REPLIES 2
Peptic_Ulcer_90
Regular Visitor

I am getting same error

Anonymous
Not applicable

Hi @aggarwal25,

 

If you want to analysis a web api, you should ensure it can be access first. I test to open your link in web browser but failed, I get "404" error.(it means you are try to open invalid source)

 

Regards,

XIaoxin Sheng

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.