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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

powerbi an exception occurred due to an on premise service issue

I am accessing one SQL Server DB using direct query.  This report works fine for varying lengths of time but then stops working with the error AN EXCEPTIONS OCCURRED DUE TO AN ON PREMISE SERVICE ISSUE.  We checked if there was an SQL activity (backups etc.) going on to interrupt it but none.

 

We run a subscription report to track when it fails and there is no consistency. 

 

When we refresh the report it usually starts working again, sometime we have to go and refresh the connections or on premise gateway.

 

Any ideas?

Status: Investigating
Comments
Anonymous
Not applicable

Hi  @is001902 ,

 

If the SQL Server is under heavy load or if there’s a long-running query, it might cause timeouts. You may try monitor the SQL Server’s performance and check for any slow-running queries.
Sometimes, spikes in the number of connections also lead to issues.You could try refreshing the credentials in the data source settings of the semantic model.

 

Best regards.
Community Support Team_Caitlyn

hs006
Regular Visitor

Hi I have a similar issue with all my reports on one particular workspace. We did the following check but none of them worked

  1. Check Gateway connectivity and service account access to server
  2. Using different Service account to check issue the account or not
  3. There weren't any spikes on SQL Monitor

But If report is taken over by the user then we do not have any issues like exceptions has been thrown due to on-premise issue / Invalid credentials.

is001902
New Member

I have checked all of the above,  I have even reduced down to just one query, using indexes etc to ensure maximum efficiency,  eliminated all other pages on the report and still it behaves the same way.   My next step is to try using imported data instead of direct query.  Not sure what to do next. @Anonymous   @hs006 

 

Thanks, Gregor

gjross78
Frequent Visitor

I am getting the same error with a Dataverse connection.

Anonymous
Not applicable

Hi  @is001902 ,

 

Based on the above information, this issue is complex which may need to collect log files for further troubleshooting. Since community support engineers don't have that access, I would suggest opening a Support Ticket. If you are a Power BI Pro or Fabric licensee, you can create a support ticket for free and a dedicated Microsoft engineer will come to solve the problem for you. 
It would be great if you continue to share in this issue to help others with similar problems after you know the root cause or solution.

 

The link of Power BI Support: Support | Microsoft Power BI

For how to create a support ticket, please refer to How to create a support ticket in Power BI - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ Caitlyn

Arul
Super User

@Anonymous ,

I am also having the similar issue,

 

Scenario 1: I have a report tile which is connected to Streaming dataset. Report is working well within the Power BI service but in the embedded application it throws below error.

 

Arul_0-1715082018809.png

 

 

Scenario 2: Also, I have some other tiles which is connected to PostgreSQL in Direct Query mode. Data for this also not coming up in the embedded application and showing the above error. But when I open the Power BI report in powerbi service I could see the report tiles without any error. 

Anonymous
Not applicable

I am having the same issue as Arul. Works fine in the service but not when report embedded with a semantic power bi as source. Any updates on this?

A179002_1
New Member

Facing the exact same issue as stated above by many users.

Report is working fine but suddenly started giving the "On-Premise Gateway Error".

Does anyone able to solve this.Please reply.

edilsonsantose
Regular Visitor

I encountered this issue and found a solution. From what I observed, it happens in embedded scenarios with Direct Query connections. In Power BI Service, the report works fine, but in the embedded version, it throws the error:

"An exception occurred due to an on-premise service issue."


How I Resolved It

When connecting to a Lakehouse, it is mapped by default as:

"Default Single Sign-On; Enter ID"

 

edilsonsantose_0-1735328992743.png

 

This default configuration causes the issue, as shown in the screenshot below.

To resolve it, I simply:

  1. Clicked on Create a Connection.
  2. Unchecked the option "Use Azure AD Single Sign-On for Direct Query".

edilsonsantose_1-1735329029997.png

 

After doing this, everything worked normally.

Coach93
New Member
Hi All, Any solution for above issue?