• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

All Users On My Network Unable to Refresh Data in Excel Workbook Feed by csv Files in a Local Directory|Power Query|Excel Forum|My Online Training Hub

You are here: Home / All Users On My Network Unable to Refresh Data in Excel Workbook Feed by csv Files in a Local Directory|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 QueryAll Users On My Network Unable to R…
sp_PrintTopic sp_TopicIcon
All Users On My Network Unable to Refresh Data in Excel Workbook Feed by csv Files in a Local Directory
Avatar
Mark Janecek

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
January 19, 2019
sp_UserOfflineSmall Offline
1
March 2, 2019 - 3:36 am
sp_Permalink sp_Print

I built some reporting in Excel with a data source on  a local network drive location that contains multiple csv files of the same data.  I used Power Query to combine the data from a folder and load it into excels data model so Power Pivot could be used to create measures etc..

I seem to be the only user on the network that can refresh the data without issue.

I’m able to refresh the data fine by hitting refresh all, but other users on our network, but when other users attempt to refresh the data they are getting the following message box.[Image Can Not Be Found]

message1.jpgImage Enlarger

Other users click ok to that and then see the below dialog:

privacy-levels.jpgImage Enlarger

The user Select Ignore Privacy Level checks for this file and click save.

They then get the below message.

DataSourceError.jpgImage Enlarger

The path listed about is not the location of the data source.

I went into query options under Get Data and selected Always Ignore Privacy Level Settings under Global.  That produced the same result.

QueryOptions.jpgImage Enlarger

The other two options : Always combine data according to your Privacy Level settings for each source AND Combine data according to each file’s Privacy Level settings, produced the same results too.

How can I fix the workbook so users other than myself, who created the workbook can refresh the data without issue?

sp_PlupAttachments Attachments
  • sp_PlupImage message1.jpg (47 KB)
  • sp_PlupImage privacy-levels.jpg (31 KB)
  • sp_PlupImage DataSourceError.jpg (23 KB)
  • sp_PlupImage QueryOptions.jpg (20 KB)
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
March 2, 2019 - 8:28 am
sp_Permalink sp_Print

Hi Mark,

Can you please share the M code from all of the queries in the file from the user's PC that is throwing the error showing the U drive file path error?

Also, what version of Excel are you all using?

Mynda

Avatar
Mark Janecek

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
January 19, 2019
sp_UserOfflineSmall Offline
3
March 6, 2019 - 3:01 am
sp_Permalink sp_Print

The version of excel we are using is 1901 for Office 365 Pro Plus.  Build 11231.20174 Click to Run.

 

Here is the M Code for all the queries.  Space is left between queries:

 

let
Source = Csv.Document(#"Sample File Parameter2",[Delimiter=",", Columns=4, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
#"Promoted Headers"

 

let
Source = Csv.Document(#"Sample File Parameter1",[Delimiter=",", Columns=8, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
#"Promoted Headers"

 

let
Source = Csv.Document(#"Sample File Parameter3",[Delimiter=",", Columns=4, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
#"Promoted Headers"

 

let
Source = Folder.Files("I:\Users\kolszewski\Files QA stats"),
#"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
#"Filtered Rows2" = Table.SelectRows(#"Filtered Hidden Files1", each Text.StartsWith([Name], "qahourlystats")),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Rows2", "Transform File from qa stats report", each #"Transform File from qa stats report"([Content])),
#"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1",{"Source.Name", "Date created", "Transform File from qa stats report"}),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from qa stats report", Table.ColumnNames(#"Transform File from qa stats report"(#"Sample File"))),
#"Removed Columns" = Table.RemoveColumns(#"Expanded Table Column1",{"Date created"}),
#"Changed Type" = Table.TransformColumnTypes(#"Removed Columns",{{"Source.Name", type text}, {"username", type text}, {"hour", Int64.Type}, {"amount", Int64.Type}, {"micr", Int64.Type}, {"reverify", Int64.Type}, {"duplicate", Int64.Type}, {"summary", Int64.Type}, {"summary_reverify", Int64.Type}}),
#"Inserted Text Between Delimiters" = Table.AddColumn(#"Changed Type", "Text Between Delimiters", each Text.BetweenDelimiters([Source.Name], "-", "."), type text),
#"Changed Type1" = Table.TransformColumnTypes(#"Inserted Text Between Delimiters",{{"Text Between Delimiters", type date}}),
#"Renamed Columns2" = Table.RenameColumns(#"Changed Type1",{{"Text Between Delimiters", "File Date"}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Renamed Columns2", {"Source.Name", "username", "hour", "File Date"}, "Attribute", "Value"),
#"Filtered Rows" = Table.SelectRows(#"Unpivoted Columns", each true),
#"Renamed Columns" = Table.RenameColumns(#"Filtered Rows",{{"Attribute", "Queue"}}),
#"Filtered Rows1" = Table.SelectRows(#"Renamed Columns", each ([Value] <> 0)),
#"Renamed Columns3" = Table.RenameColumns(#"Filtered Rows1",{{"Value", "NumberItems"}}),
#"Sorted Rows" = Table.Sort(#"Renamed Columns3",{{"Source.Name", Order.Descending}})
in
#"Sorted Rows"

 

let
Source = Excel.Workbook(File.Contents("I:\Users\kolszewski\Date Table.xlsx"), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Date", type date}, {"Month", Int64.Type}, {"Year", Int64.Type}, {"DOM", Int64.Type}, {"DOW", Int64.Type}, {"Weeknum", Int64.Type}, {"MonthName", type text}, {"DayName", type text}, {"WeekStartDate", type date}})
in
#"Changed Type"

 

let
Source = Folder.Files("I:\Users\kolszewski\Files QA stats"),
#"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Name], "risk")),
#"Filtered Hidden Files1" = Table.SelectRows(#"Filtered Rows", each [Attributes]?[Hidden]? <> true),
#"Filtered Hidden Files2" = Table.SelectRows(#"Filtered Hidden Files1", each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files2", "Transform File from Files QA stats (2)", each #"Transform File from Files QA stats (2)"([Content])),
#"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File from Files QA stats (2)"}),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from Files QA stats (2)", Table.ColumnNames(#"Transform File from Files QA stats (2)"(#"Sample File (3)"))),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"worked_user", type text}, {"date", type date}, {"hour", Int64.Type}, {"total", Int64.Type}}),
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"Source.Name", Order.Ascending}}),
#"Removed Other Columns" = Table.SelectColumns(#"Sorted Rows",{"worked_user", "date", "hour", "total"})
in
#"Removed Other Columns"

 

let
Source = Csv.Document(#"Sample File Parameter2",[Delimiter=",", Columns=4, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
#"Promoted Headers"

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
March 6, 2019 - 10:25 pm
sp_Permalink sp_Print

Hi Mark,

It's odd indeed. Do all other users have access to this drive: "I:\Users\kolszewski\Files QA stats" or is it just you?

Mynda

Avatar
Mark Janecek

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
January 19, 2019
sp_UserOfflineSmall Offline
5
March 8, 2019 - 12:14 am
sp_Permalink sp_Print sp_EditHistory

All users who have attempted to access this seem to have the same permissions set to that folder, including myself and one other user that IS able to refresh the data.

 

The Properties General attachment below shows what the General tab for the properties on that drive look like for both myself and another user that is not able to refresh the data.  I am able to.

 

The Properties Security attachment shows what the Security tab for the properties on that drive look like for both myself and another user that is not able to refresh the data. 

 

MarkProperties-Security.JPGImage Enlarger

Properties-General.JPGImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Properties-Security.JPG (64 KB)
  • sp_PlupImage Properties-General.JPG (52 KB)
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1529
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
6
March 8, 2019 - 11:31 am
sp_Permalink sp_Print sp_EditHistory

Hi Mark,

You say that other users 'seem to' have the same permissions.  Can you confirm this is actually the case?

On the face if it, your files are stored in a folder that is specific to you.  Normally on a network when you have a folder structure like \Users\Username, each Username folder has permissions that only allow that particular user access.

Also, on a shared drive, you can get permissions for the share, which are different to the file/folder permissions.  If the sharing permission restricts user access then it overrides any file/folders permissions.

It's not clear to me if the I: and U: drives are shared drives accessible by all and set up by your network admin, or something you set up.

On the Security tab for the Files QA Stats folder, the Everyone group is selected, but at the bottom, there are no permissions granted for that group.  So the Everyone group has no access.

There are also the 106 and wwwbatch groups which have different permissions to the Everyone group.  But the screenshots don't show what these group permissions are.  You will need to check group membership for all users trying to access this folder to confirm what their actual permissions are.

With regards to the error message about the U: drive, the image you posted about Privacy Levels is asking you to set privacy levels for I: and U: so it would seem that something in your query is accessing the U: drive.  Or maybe something in one of the other workbooks is accessing the U: drive.

If you can send us all the files in question it would help.

Regards

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Riny van Eekelen, David Jernigan, Cassie Bernier
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Purple RainbowBenefactor
MOTH Junkie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6350
Posts: 27773

 

Member Stats:
Guest Posters: 49
Members: 32317
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.