Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
a premium capacity report i last used in september 2025 is now throwing me errors in the 2 sections for extract key phrases and score sentiment.
the error thrown for this M code:
= AIFunctions.Contents(){[Key = "CognitiveServices.ExtractKeyPhrasestexttext"]}[Data]
error:
An error occurred in the ‘’ query. Expression.Error: The name 'AIFunctions.Contents' wasn't recognized. Make sure it's spelled correctly.
the error thrown for this M code:
= AIFunctions.Contents(){[Key = "CognitiveServices.ScoreSentimenttexttext"]}[Data]
error:
An error occurred in the ‘’ query. Expression.Error: The name 'AIFunctions.Contents' wasn't recognized. Make sure it's spelled correctly.
in the query with the step for "applied extract key phrases" where it looks like this:
= AIFunctions.PostProcess(Table.AddColumn(#"Sorted Rows", "Extract key phrases", each #"Extract key phrases"([Response], null)), "Extract key phrases", "CognitiveServices.ExtractKeyPhrasestexttext") meta [FunctionBrowser="TextAnalytics"]
error:
Expression.Error: The name 'AIFunctions.PostProcess' wasn't recognized. Make sure it's spelled correctly.
our power bi reports that have been working for several years should not be all of a suddent broken and unfixable. ive never seen this happen. help?
Solved! Go to Solution.
Hi @agoldberg
This is AI generated and unverified, but I hope it helps:
Your issue is happening because Microsoft retired Cognitive Services and Azure Machine Learning integration in Power BI as part of the transition to Microsoft Fabric AI services. This retirement was completed on September 15, 2025, and all related features (including AI Insights like Extract Key Phrases and Score Sentiment) were removed from Power BI Desktop and Service.
Here’s what changed and why your M code is failing:
Microsoft recommends migrating to Fabric AI services or Azure AI REST APIs. Here are your options:
Move to Microsoft Fabric AutoML or AI Services
Call Azure AI REST APIs from Power Query
Short-Term Workaround
--------------------------------
I hope this helps, please give kudos and mark as solved if it does!
Connect with me on LinkedIn.
Subscribe to my YouTube channel for Fabric/Power Platform related content!
Hi @agoldberg
Thank you for reaching out to the Microsoft Fabric Forum Community.
@wardy912 Thanks for the inputs.
As @wardy912 Mentioned Microsoft has retired few AI Insights features, As an alternative You can explore the AI services in fabrics to achieve your requirement Use Azure AI services in Fabric - Microsoft Fabric | Microsoft Learn.
Thanks.
Hi @agoldberg
Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.
Hi @agoldberg
I wanted to check if you had the opportunity to review the information provided by users. Please feel free to contact us if you have any further questions.
Hi @agoldberg
This is AI generated and unverified, but I hope it helps:
Your issue is happening because Microsoft retired Cognitive Services and Azure Machine Learning integration in Power BI as part of the transition to Microsoft Fabric AI services. This retirement was completed on September 15, 2025, and all related features (including AI Insights like Extract Key Phrases and Score Sentiment) were removed from Power BI Desktop and Service.
Here’s what changed and why your M code is failing:
Microsoft recommends migrating to Fabric AI services or Azure AI REST APIs. Here are your options:
Move to Microsoft Fabric AutoML or AI Services
Call Azure AI REST APIs from Power Query
Short-Term Workaround
--------------------------------
I hope this helps, please give kudos and mark as solved if it does!
Connect with me on LinkedIn.
Subscribe to my YouTube channel for Fabric/Power Platform related content!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |