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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jemmaa
Regular Visitor

AI Functions error for text analytics

Hi, I was able to use this a few weeks ago now I am getting this error in desktop.

 

Any ideas how I can resolved this?

 

DataSource.Error: An error happened while reading data from the provider: '{"error":{"code":"PowerBINotAuthorizedException","pbi.error":{"code":"PowerBINotAuthorizedException","parameters":{},"details":[],"exceptionCulprit":1}}}'
Details:
DataSourceKind=AIFunctions
DataSourcePath=AIFunctions
DataSourceKind.2=AdoDotNet
DataSourcePath.2=AI.Provider/

1 ACCEPTED SOLUTION
rohit1991
Super User
Super User

Hi @jemmaa ,
The error you're encountering—PowerBINotAuthorizedException—typically points to an authorization issue with the AI Functions connector in Power BI Desktop. Since you've already confirmed that your Power BI Pro license is active, you've reinstalled Power BI, and have cleared and re-entered credentials, the next likely cause is that the AI workload might no longer be enabled in your tenant. 

 

Even though you're working in Power BI Desktop and not yet connected to a workspace, AI features like text analytics still depend on tenant-level settings. To move forward, double-check with your Power BI administrator to ensure the AI workload is enabled in your tenant or Premium capacity settings. Also, revisit Transform Data > Data Source Settings in Desktop, clear any cached credentials for "AIFunctions", and sign in again. If you're using a Premium workspace, ensure the AI workload is turned on in the Capacity settings in the Power BI Admin Portal.

 

Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.

Connect with me on LinkedIn: Rohit Kumar.

View solution in original post

11 REPLIES 11
v-pgoloju
Community Support
Community Support

Hi @jemmaa,

 

Just following up to see if the solution provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.

If the response addressed your query, kindly mark it as Accepted Solution and click Yes if you found it helpful  this will benefit others in the community as well.

 

Best regards,

Prasanna Kumar

jemmaa
Regular Visitor

I am also getting this "No premium capacities are available"

jemmaa_0-1747140696120.png

 

Hi @,

Thanks for reaching out to the Microsoft Fabric Forum Community.


Your “No premium capacities are available” error means you don’t have access to Premium features needed for these AI functions. To use AI Functions without errors, you must publish your report/dataset to a Premium workspace with AI workloads enabled.


If this helped, please mark the response as the accepted solution and give it a thumbs-up so others can benefit too.

 

Best regards,
Prasanna Kumar

Thanks for your reply. The workspace is already set to premium and AI functions are already enabled. This was working 4 weeks ago and has suddenly stopped.

Hi @jemmaa,

 

Thanks for reaching out to the Microsoft Fabric Forum Community.

 

Tryout these workarounds:

Basic Checks
Sign out and sign back in to Power BI Desktop. Clear all Global Permissions under Data source settings (AIFunctions, etc.). Ensure your Pro license is active.

Ask admin to unassign --> save --> reassign the workspace to Premium (to refresh config). Make sure you're still part of the security group tied to Premium capacity access.

Troubleshoot Environment & Services: Try the AI function in a blank new PBIX file. Ensure your workspace, tenant, and Azure services are all in the same region.

If the issue still persists, I’d recommend raising a support ticket with Microsoft. The support team can look into the backend and provide more in-depth assistance tailored to your environment.


https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket


If this helped, please mark the response as the accepted solution and give it a thumbs-up so others can benefit too.

 

Best regards,
Prasanna Kumar

 

rohit1991
Super User
Super User

Hi @jemmaa ,
The error you're encountering—PowerBINotAuthorizedException—typically points to an authorization issue with the AI Functions connector in Power BI Desktop. Since you've already confirmed that your Power BI Pro license is active, you've reinstalled Power BI, and have cleared and re-entered credentials, the next likely cause is that the AI workload might no longer be enabled in your tenant. 

 

Even though you're working in Power BI Desktop and not yet connected to a workspace, AI features like text analytics still depend on tenant-level settings. To move forward, double-check with your Power BI administrator to ensure the AI workload is enabled in your tenant or Premium capacity settings. Also, revisit Transform Data > Data Source Settings in Desktop, clear any cached credentials for "AIFunctions", and sign in again. If you're using a Premium workspace, ensure the AI workload is turned on in the Capacity settings in the Power BI Admin Portal.

 

Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.

Connect with me on LinkedIn: Rohit Kumar.

In addition this just suddenly stopped working. I have used the AI functions a few weeks ago in desktop and this was fine. But isn't working now.

Thank you @rohit1991 how do we enable this?

 

To move forward, double-check with your Power BI administrator to ensure the AI workload is enabled in your tenant or Premium capacity settings

jemmaa
Regular Visitor

Hi @burak thanks for your reply

 

I have followed the below steps:

  • I have re-installed powerBI
  • I have a pro license
  • Using this in desktop
  • Have cleared permissions and re-entered the credentials
  • PowerBI pro license is active

 

As this is happening in desktop currently this wont be connected to the workspaces will it yet?

If so how do I do this point? 

  • The AI workload is no longer enabled in your tenant.

Thanks for the update. Since you're using Power BI Desktop and not yet connected to a workspace, the AI workload setting would apply only once the report is published to a Premium workspace. To proceed:

  • Try publishing your report to a Premium workspace (if available).
  • Then, ask your Power BI admin to verify that the AI workload is enabled in the capacity settings of that workspace.

If you're not using Premium, AI features may be limited or unavailable. In that case, consider switching to a supported method or checking if your tenant has access to AI capabilities.

burakkaragoz
Community Champion
Community Champion

Hi @jemmaa ,

 

The error message indicates a PowerBINotAuthorizedException, which means the AI Functions connector is being blocked due to authorization issues. This can happen if:

  • Your Power BI license or permissions have changed.
  • The AI workload is no longer enabled in your tenant.
  • The data source credentials need to be re-entered or updated.

To resolve it:

  1. Go to Power BI Desktop > Transform Data > Data source settings.
  2. Find the AI Functions source and clear permissions.
  3. Reconnect and sign in again with the correct credentials.
  4. Ensure your Power BI Pro or Premium license is active.
  5. If using a Premium workspace, verify that AI workload is enabled in the capacity settings.

If the issue persists, contact your Power BI administrator to check tenant-level settings.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.