cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
eppe2000 Frequent Visitor
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

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: Schedule Refresh doesn't work because of port issues

@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.
2 REPLIES 2
Moderator v-yuezhe-msft
Moderator

Re: Schedule Refresh doesn't work because of port issues

@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.
eppe2000 Frequent Visitor
Frequent Visitor

Re: Schedule Refresh doesn't work because of port issues

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

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Top Kudoed Authors
Users Online
Currently online: 269 members 2,808 guests
Please welcome our newest community members: