• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Initialization of the data source failed|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Initialization of the data source failed|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryInitialization of the data source f…
sp_PrintTopic sp_TopicIcon
Initialization of the data source failed
Avatar
Pam Simpson
Oklahoma
Member
Members

Dashboards

Power Pivot
Level 0
Forum Posts: 20
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
1
June 29, 2016 - 7:16 am
sp_Permalink sp_Print

Using PowerQuery I have created some Excel workbooks that pull data from another workbook.  The purpose is to pull out specific pieces of information that some users need to see and keep the other data confidential.

All of these spreadsheets are stored on SharePoint because they need to be accessed by many users.  However, when users attempt to open the workbooks that are using the PowerQuery to pull the information, they get the following error: "Initialization of the data source failed.  Check the database server or contact your database administrator..." 

My SharePoint administrator is telling me that I need for all of the users to have PowerQuery installed on their machines and they will all need to be given rights to the original workbook which holds the confidential information.  This seems to defeat the purpose of using PowerQuery if that is actually the case.  Has anyone else encountered this and is there another solution than what the SharePoint administrator has proposed?

Thank you for your assistance.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4436
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
June 29, 2016 - 2:06 pm
sp_Permalink sp_Print

If you've 'Closed & Loaded' that query to a table in the workbook then any user should be able to see the data. If they get the error/warning they shluld be able to just close it.

However, they can only refresh the query if they have both Power Query installed and SharePoint permissions to the source data.

Mynda

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1807
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
3
June 29, 2016 - 3:53 pm
sp_Permalink sp_Print

Hi PS-C21H,

Please provide a link to all forums where you have posted this question. All the people that will try to provide an answer to your problem should be aware of eachother.

See more about the downsides of crossposting here: Crossposting

Thanks for understanding.

Catalin

Avatar
Pam Simpson
Oklahoma
Member
Members

Dashboards

Power Pivot
Level 0
Forum Posts: 20
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
July 22, 2016 - 12:40 am
sp_Permalink sp_Print

First Catalin, I apologize for not following the posting etiquette.  Thank you for educating me on that.  I posted to two other sites and neither game me a helpful response.

I hope it is appropriate to add this reply/question here since it is related to the same topic.

Mynda, I do appreciate your feedback.  My SharePoint administrator and I took a little different approach.  He created a service account on SharePoint and we gave that account rights to the other workbooks that are my data source instead of giving access to the many individual people.  This seems to be working (now that they have PowerQuery installed), but there is one thing that isn't working and I am not sure if it is something I am missing or if it is just something that must be done this way.  Everyone who opens the workbooks that are pulling from the original Excel files on SharePoint have to enter the service account's username and password.  Is there not a place I can set that so the end users do not have to bother with entering that information?  I have added the service account to the following places in the files myself...

DATA tab > Connections > Properties > Definition tab > Excel Services: Authentication Settings > Use a stored account and I have put the service account name there.  (Wasn't sure if I should, but it seemed to make sense.)  However, that didn't seem to do anything.

So then I found on the POWER QUERY tab > Data Source Settings > I picked the SharePoint connection > Edit > Credentials Type: Windows > Edit > Use alternate credentials - and I put the service account username and password there.  However, again the users are still being prompted to add that information again when they open the files. 

Are there any other places to store the username and password that will keep users from having to put in this information?  I greatly appreciate your assistance!!

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1807
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
5
July 22, 2016 - 3:19 am
sp_Permalink sp_Print

When you create a new query from Online Services-From SharePoint Online List, In the Access SharePoint dialog box that appears next, you have 3 credentials options:

Select Anonymous if the SharePoint Server does not require any credentials.

Select Windows if the SharePoint Server requires your Windows credentials.

Select Organizational account if the SharePoint Server requires organizational account credentials.

Keep in mind that the credentials are stored on your computer, you will not be prompted again for credentials.

If the file is going to be used by other users on other computers, for the first use they will be asked to enter their credentials. After that, they will not be asked again for credentials. In case you expected that no other users will be prompted again to enter credentials, it's wrong, because it is a security problem. What if the file is used by other people, maybe your competitors... You certainly don't want them to update the data without credentials.

Hope it helps.

Catalin

Avatar
Susan Gill

New Member
Members
Level 0
Forum Posts: 1
Member Since:
August 4, 2016
sp_UserOfflineSmall Offline
6
August 5, 2017 - 12:30 am
sp_Permalink sp_Print

I created a workbook with power query and power pivot table and charts. I have another user who tries to open the file, click on a slicer and gets the same error as mentioned earlier("Initialization of the data source failed.  Check the database server or contact your database administrator...")

I've tried researching this, but haven't had any luck. Any help you can provide would be appreciated. 

thanks,

Susan

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4436
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
7
August 5, 2017 - 9:22 pm
sp_Permalink sp_Print

Hi Susan,

This isn't a Power Query issue, it's a Power Pivot issue. If the user wants to interact with the Slicers then they require Power Pivot, and the same version of Power Pivot as you. More on the error here: https://support.office.com/en-.....b2fa1c098b

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: adam elias
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Lawrence Miu
Jo Saies
Paul Pritchard
Monique Roussouw
Keith Aul
Richard Dunks
Manjula Mangalmurti
Thomas Quidort
Jamie Preece
Bob Smith
Forum Stats:
Groups: 3
Forums: 24
Topics: 6192
Posts: 27146

 

Member Stats:
Guest Posters: 49
Members: 31847
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.