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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Power Bi Premium Workspace - Refresh Issues - API Data Source

Hi All,

I am able to establish connection with API and able to refresh in power bi service also without any issue. BUT, when i publish my report to premium workspace and tried to refresh its throwing me this error => DataSource.Error: <pii>The underlying connection was closed: An unexpected error occurred on a send.</pii>. <pii> "API URL" </pii>. . The exception was raised by the IDbCommand interface. Table: "Table Name" . 

 

If someone already faced this issue please explain me what exactly causing this issue, stuck with this for past 1 week. 

 

5 REPLIES 5
rewildman
New Member

Hi, did you manage to find a solution to this as I am having the same issue?

My reports refresh via a web API so no gateway is needed to set up automatic refresh normally, however, when I have now tried to publish to a Premium per capacity workspace I am getting the same error message. Would be grateful if you could share any solutions that you found.

Thanks! 

bahadireren
Frequent Visitor

Did you install a gateway?

Where is your data location in PowerBI premium capacity? Screenshots would be helpful

Anonymous
Not applicable

Since it is Premium Per User License mode. I not seeing the option for selecting the data location. Only option i have is selecting Default Storage Format from small to large dataset  storage format. 

Banuprasaad_0-1646018474374.png

 

lbendlin
Super User
Super User

Needs more details. What type of API? Does it require a gateway?

Anonymous
Not applicable

Its a REST API. Not using the gateway. I followed Chris Webbs's method. to connect with API though.

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.