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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Max_WH
Helper I
Helper I

AnalysisServices: The connection is not open.. Microsoft.Data.Mashup.ErrorCode = 10478

Encountering data refresh failure on app.powerbi.com online services. 

But the data is able to refresh via PowerBI desktop.

 

Failures like the below

Data source error: DataSource.Error: AnalysisServices: The connection is not open.. Microsoft.Data.Mashup.ErrorCode = 10478. DataSourceKind = AnalysisServices. DataSourcePath = powerbi://api.powerbi.com/v1.0/myorg/dsa

Data source error: DataSource.Error: AnalysisServices: The connection either timed out or was lost.. Microsoft.Data.Mashup.ErrorCode = 10478. DataSourceKind = AnalysisServices. DataSourcePath = powerbi://api.powerbi.com/v1.0/myorg/dsa 

 

Request ID  354e2a6e-abd0-4f7d-86f9-1b815debe9cd
Start time 3/4/2025, 10:07:14 AM
End time 3/4/2025, 10:34:12 AM
Duration 26m 58s
Refresh type On demand
1 ACCEPTED SOLUTION

Hi @Max_WH 

My support case for this error message is almost ready to be closed.  I thought I'd let you know.  It turns out there was a bug in the way the PQ mashup engine interacts with the underlying connections to the PBI dataset.  This behavior should be documented by Microsoft in the near future, and I'll post a link here.


I opened two SR # for this bug:
2503220040000275
and 

2504010010001220

 

The second was a unified/premier case.

 

 

I'm not totally sure, but I think your case and my case were both associated with the same internal IcM (Incident-603360591)  You should be able to confirm that with your Mindtree engineer, if you provide my IcM number.


I have an RCA and a longer explanation can be found here:
https://community.fabric.microsoft.com/t5/Service/DataSource-Error-AnalysisServices-The-connection-e...

 

The RCA for my case is like so:

dbeavon3_0-1747870032359.png

 

 

 

I don't know if that helps.  At the end of the day, the workaround is pretty straightforward.  You have to wrap any queries for the AnalysisServices connector, and put Table.Buffer around them.  This ensures that connections won't be held open for long periods of time resulting in socket exceptions.  In my case the offending connection was being held open for internal reasons that are NOT in my control.  It has something to do with the fact that we are using one query as the driver to loop/execute some nested queries.

Hopefully this is makes sense. Your best is to test with Table.Buffer and see if that avoids the error.  IMO this is an obvious bug, but the ASWL PG doesn't currently see it that way (possibly because the bug isn't theirs but belongs to a related product team - PBI integrations or whatever).

View solution in original post

17 REPLIES 17
rohit1991
Super User
Super User

Hi @Max_WH 

 

The connection is not open. You can try some of these things:

 

  1. Credentials in the Service:
    Go to Power BI Service -Dataset Settings -Data source credentials, and re-enter the credentials for your model even if they worked before. This error often shows up when the Service can’t authenticate to one of the sources.

  2. Gateway mapping:
    If you’re using a gateway, double-check the mapping. Make sure it’s connected and the source is mapped exactly like it is in Desktop (server name, database, etc.).

  3. Privacy levels:
    On the Desktop side, sometimes things work because privacy settings are ignored or simplified. But in the Service, if you're combining sources and their privacy levels don't match, it can silently block connections. Try setting both to Organizational under Options -Privacy -Current File -Data Sources.

  4. Live/Direct connections:
    If your model is using a live connection to SSAS or AAS, also confirm that the Service has proper access via Azure AD or a gateway that supports the same authentication method.

 

If none of these help, grab a screenshot of the full error message from the refresh history or gateway logs that can sometimes point more specifically to the source that's failing


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Anonymous
Not applicable

Hi @Max_WH,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

 

Please verify the below steps:

  • Check the Capacity Metrics App for resource consumption and throttling. If on a Shared Capacity, refresh failures might be due to resource limits—consider moving to a dedicated capacity.
  • If in Import Mode, check if the dataset is too large or exceeding service limits.
  • Check Data source credentials, re-enter credentials, and ensure they match what you use in Power BI Desktop.
  • Open the dataset in Power BI Desktop, re-publish it to the same workspace, and reconfigure refresh settings.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


Regards,
Vinay Pabbu

Thank you for your reply. I have tried all your suggestions but still to no avail. The data size is just 5MB.

Anonymous
Not applicable

Hi @Max_WH,

 

I suggest reaching out to Microsoft Support by raising a ticket. Microsoft will analyze backend logs and provide a resolution

 

Below is the link to create Microsoft support ticket:
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket 

 

Regards,

Vinay Pabbu

Hi @Max_WH  and @Anonymous 

It has been three weeks since you first mentioned this bug .  Did you open a ticket (SR with Mindtree)?

I'm about to open a similar ticket.  Would be nice to know your SR number or ICM number.

Did you expand the refresh history to find the multiple failures, per refresh attempt?  I think this is a problem that originates with the mashup engine.  I think there is some sort of self-inflicted timeout and cancellation.   There is exponential backoff as well.  I totally HATE the way Microsoft implements retries to hide their own bugs.  This troubleshooting is taking many hours longer than it should, simply because of the mandatory retries that are doomed to fail.  (Doom is a good word for the feeling, whenever I'm working with these PBI bugs.)

 

dbeavon3_0-1742607116612.png

 

 

Just as with OP, my queries run fine on the local PBI desktop but not in the service.  They fail comparatively quickly in the service.

 

Before failure I am seeing lots of successful activity in the sql profiler trace (image below).  However after a period of time, the queries stop executing, presumably because the PQ mashup engine commits suicided.  Notice that the queries are hitting my capacity from a PQ mashup engine running in azure (north central)

 

dbeavon3_1-1742607292768.png

 

 

The dataset refresh is moving data from one dataset to another via a "cloud connection", rather than a gateway.  Like so:

dbeavon3_2-1742607486333.png

 

 

Any information would be appreciated.  It feels like the type of ticket that will take far too long (3 weeks)?  I'm hoping you can help me avoid some of that delay.

 

 

 

 

 

Yes, it has something to do with the mashup engine. Ticket opened with Microsoft, but till now they are still investigating the issue. what's a pity!

Hi @Max_WH 

My support case for this error message is almost ready to be closed.  I thought I'd let you know.  It turns out there was a bug in the way the PQ mashup engine interacts with the underlying connections to the PBI dataset.  This behavior should be documented by Microsoft in the near future, and I'll post a link here.


I opened two SR # for this bug:
2503220040000275
and 

2504010010001220

 

The second was a unified/premier case.

 

 

I'm not totally sure, but I think your case and my case were both associated with the same internal IcM (Incident-603360591)  You should be able to confirm that with your Mindtree engineer, if you provide my IcM number.


I have an RCA and a longer explanation can be found here:
https://community.fabric.microsoft.com/t5/Service/DataSource-Error-AnalysisServices-The-connection-e...

 

The RCA for my case is like so:

dbeavon3_0-1747870032359.png

 

 

 

I don't know if that helps.  At the end of the day, the workaround is pretty straightforward.  You have to wrap any queries for the AnalysisServices connector, and put Table.Buffer around them.  This ensures that connections won't be held open for long periods of time resulting in socket exceptions.  In my case the offending connection was being held open for internal reasons that are NOT in my control.  It has something to do with the fact that we are using one query as the driver to loop/execute some nested queries.

Hopefully this is makes sense. Your best is to test with Table.Buffer and see if that avoids the error.  IMO this is an obvious bug, but the ASWL PG doesn't currently see it that way (possibly because the bug isn't theirs but belongs to a related product team - PBI integrations or whatever).

The ASWL team eventually agreed to create documentation about this.  It is confusing since a problem that is not a socket exception is being misrepresented as such.

 

https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-troubleshooting-refresh-scenarios#co...

 

 

 

dbeavon3_0-1748039138361.jpeg

 

 

For google/AI:

The Analysis Services connector may encounter the error The connection either timed out or was lost. This error is usually a transient error when the network connection fails, and a retry will succeed.

In some circumstances, this error can be more permanent when the results of the query are being used in a complex M expression, and the results of the query are not fetched quickly enough during execution of the M program. For example, this error can occur when a data refresh is copying from a Semantic Model and the M script involves multiple joins. In such scenarios, data might not be retrieved from the outer join for extended periods, leading to the connection being closed with the above error. To work around this issue, you can use the Table.Buffer function to cache the outer join table.

Thank you for the update!

Hi @Max_WH 

In your repro, are you running TONS of queries, or just a few?  Is the workspace on premium or fabric capacity?  Did you enable "Large semantic model storage format"?  How certain are you that the mashup engine is responsible (what evidence)?  The error sounds more like a problem that the AS team needs to look at.  (Sometimes they will deflect to other teams.)

 

Can you post your query here?  Do you know how many rows it is likely to generate?  Just because the data size is small doesn't mean that the results won't be enourmous - it depends on the query.

Did the engineers open the ICM with Microsoft yet?  Can you share the SR or ICM number here?

 

Is your engineer from Mindtree ("v-" in front of the name of the email address?) Have you spoken with the ops manager yet about moving the ticket to Microsoft?  Usually after three weeks the ops manager will start to take notice, and either will encourage his Mindtree engineers to send the case to Microsoft, or close the case. 

 

Did your engineers look for the failure mesages in their logs, (based on the request ID)?  What did they see?  Are there socket exceptions?  Memory issues? Is the AS service crashing?

 

Based on the error message, I think the mashup engine is the last place the problem could be originating from.  The only fault in the mashup engine is that it isn't relaying a very good error back to us, and will result in the need to spend way too much time on support tickets.

 

 

Seems to happen for dataflow GEN2 as well.

Here is an SR # for this bug:
2503220040000275

There should be an ICM today, if all goes well.

There is an ICM now as well.  If you ask the Mindtree engineer to look at my SR, they will find the ICM.

 

Based on the error, the appearance is that something is crashing on the back-end.  I suspect rather that the ASWL team has some sort of gateway that is just disconnecting a single client based on a rapid number of queries or something like that.  

 

One workaround to consider is to deliberately slow the rate of queries to the AnalysisServices connector.  I am doing this with the help of a feature in PQ: "Function.InvokeAfter()" 

 

Hopefully Microsoft will add this to their "known issues" list within the next week or so, but I doubt it.  In the meantime I guess we can continue fending for ourselves...

 

There is a repro now as well.

Hi! @Max_WH 

 

I would recommed you to try publishing it to different workspace and also I would recommend to try and create a dataflow with same source and see if issue still persists? This way we might be able to narrow down the issue.

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
AnkitKukreja
Super User
Super User

Hi! @Max_WH 

 

What is the data source? Also, are you calling large amount of data? Try with small amount of data if that works, also make sure you can implement incremental refresh if possible so you are not refreshing huge chunck of data everytime.

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

Thank you for your reply. It seems not the case. the volume of the data is normal. The data can be refreshed from Power BI Desktop but fails on Power BI online service.

DataSourcePath = powerbi://api.powerbi.com/v1.0/myorg/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors