Forum Discussion

Daniel Levite's avatar
Daniel Levite
Copper Contributor
Nov 18, 2017
Solved

Power Query data source settings in current workbook not available

When I create a power Query with a sql server data connection in the current workbook and then give the workbook to someone else, they are prompted for the credentials.  Why is this happening and how...
  • Daniel Levite's avatar
    Nov 30, 2017

    In case you do not know, I have learned something unfortunate about Power Query.

    When you create a data connection to a database, the tool stores the credentials (see Data Sources Settings dialog) in a file called User.zip

    This file is stored in the following locations on the user’s machine

    (2013) C:\Users\1037591\AppData\Local\Microsoft\Power Query

    (2016)  %LocalAppData%\Microsoft\Office\16.0\PowerQuery for Excel 2016

     

    The credentials are stored in this file using an encryption key defined by the author and the domain he is on.

    This means it will be impossible to author a power query connection to a database and deploy the connection without also telling the other users the credentials to connect.

     

Resources