Power BI Desktop caches credentials per URL on your machine. The service stores them separately on the dataset settings. After publishing, you have to re-enter the user name and access token in Dataset → Settings → Data source credentials. See Schedule refresh in Power BI service.
Why do I get 401 from the Power BI service after a successful Desktop refresh?
< 1 min read
- View as Markdown Open this page as plain Markdown (opens in a new tab)
- Open in ChatGPT Ask questions about this page (opens in a new tab)
- Open in Claude Ask questions about this page (opens in a new tab)
- Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)
Updated on May 29, 2026