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
Anonymous
Not applicable

cant set up scheduled refresh correctly

Hi all,

 

i have a Power BI report that i built on desktop app with no connection issues. im using a service account to connect to a sharepoint file and a SQL DB, both are connecting fine when reviewed manually.

I have published the report to a workspace and i now want to set up a scheduled refresh. 

 

however im getting an error in the data source credentials section for both of my connections saying its failed to connect.

when i hit "edit credentails" and try to put them in manually and hit "sign in" the circle just keeps going around and nothing happens:

Marko64_0-1661769011694.png

 

however whats confusing is if i go into my datahub and manually refesh the dataset, it works?

 

Marko64_1-1661769085857.png

 

why wont it allow me to set up a scheduled refresh? 

any inf owould be greatly appreciated

thanks!

 

1 ACCEPTED SOLUTION

Hey @Anonymous ,

 

you can configure a data source with your gateway using a service account both for your

  • database and
  • your SharePoint access

I often use the gateway to access sources hosted on SharePoint online, either a SharePoint list or files. The reason for this, it can be difficult to enter credentials for the SharePoint sources using the WebCredentials on the Schedule refresh page of the dataset.

If you are using a service account for SharePoint you have to be aware that this account also needs permissions to access the sources and also has to have a SharePoint license assigned.

Hopefully, this provides some ideas on how to tackle your challenge.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey @Anonymous ,

 

if your SQL Server DB is on-premises you need to install a gateway: Install an on-premises data gateway | Microsoft Docs

After you have installed and configured the gateway, you have to re-enter your credentials for the SharePoint data source - see the section web credentials.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

thanks @TomMartens . you were right, once i set up on prem gateway on my PC and used my personal account, then it worked.

however, it still giving me the error message when i try to use the service account credentials to log in? 

 

is the only way around this to log into the service account on Power BI service and set up the gateway that way? 

would it still be linked to my own PC? 

thanks.

Hey @Anonymous ,

 

you can configure a data source with your gateway using a service account both for your

  • database and
  • your SharePoint access

I often use the gateway to access sources hosted on SharePoint online, either a SharePoint list or files. The reason for this, it can be difficult to enter credentials for the SharePoint sources using the WebCredentials on the Schedule refresh page of the dataset.

If you are using a service account for SharePoint you have to be aware that this account also needs permissions to access the sources and also has to have a SharePoint license assigned.

Hopefully, this provides some ideas on how to tackle your challenge.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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