cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eppe2000
Frequent Visitor

Schedule Refresh doesn't work because of port issues

Hi,

 

I created a report using a SQL Server data source with a SQL Statement (just a normal SQL query on one table, set in the advaced settings under 'SQL Statement') in Power BI Desktop. To connect to the server from Power BI Desktop I used the following server format:    SERVER: PORT    .

 

I tried to set up a Scheduled Refresh for the dataset. However, it states my gateway is 'Not configured correctly'. It does show the SQL server connection I'm using, but it's not able to connect. If I manually add the same SQL Server as a data source with the format: SERVER,PORT (note the comma, instead of the colon) it does connect to the SQL server. 

 

I've tried to change the format to SERVER,PORT in my Power BI Desktop so it matches the format that is required by the gateway, but it doesn't connect. It shows me the error "The name provided is not a properly formed account name".

 

How is this possible? And can someone please provide me with a solution? Does it have something to do with the use of a SQL Statement?

 

Cheers,

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft
Microsoft

@eppe2000,

We should use servername,port as server in Power BI Desktop to connect to SQL database, I can successfully connect to SQL using this format with SQL statement.

1.PNG

How about you open a new PBIX file, delete the existing SQL permissions and reconnect to SQL Server ?
1.PNG

Regards,

Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Microsoft
Microsoft

@eppe2000,

We should use servername,port as server in Power BI Desktop to connect to SQL database, I can successfully connect to SQL using this format with SQL statement.

1.PNG

How about you open a new PBIX file, delete the existing SQL permissions and reconnect to SQL Server ?
1.PNG

Regards,

Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

 Deleting the existing permissions and reconnect to the SQL Server using a comma worked. Thanks! 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors