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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anchal-D
Regular Visitor

Power BI REST API - Authentication failed because the remote party has closed the transport stream.

Hi, I am getting error "Authentication failed because the remote party has closed the transport stream." while connecting to Power BI REST API via a SSIS Script task. It was working fine till last Friday and sudently it started throwing error. below is the api string i am calling -

 

https://api.powerbi.com/v1.0/myorg/groups?$filter=contains(name,'ECHO')

 

anyone aware about any changes in the API side recently? I find some links asking to change target framework on script task side and I changed it from 4.5 to 4.6 but still getting this error. any help is appriciated.

 

 

Thanks in Advance.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

maybe related to the TLS 1.2 enforcement?

View solution in original post

7 REPLIES 7
Anchal-D
Regular Visitor

Yes. it was TLS 1.2 enforcement issue, I used below in my code and it fixed it.

 

System.Net.ServicePointManager .SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; 

 

 

 

 

HI @Anchal-D , This seems to be a very old post but I have the same problem that I recently encounter. With your solution, how do I put this colde in Power Query. 

I encounter this issue in my PowerBI Dataflow.

 

Thank you in advance!

show a cleaned up version of your Power Query code.  Which API endpoint are you calling?

Anonymous
Not applicable

It is not working in Win7. 

The workaround is to use Win10

Anonymous
Not applicable

same here

lbendlin
Super User
Super User

maybe related to the TLS 1.2 enforcement?

Anonymous
Not applicable

checked "internet option" in my computer. TLS 1.0, 1.1, 1.2 are checked.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors