Active Member
January 19, 2019
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]
Other users click ok to that and then see the below dialog:
The user Select Ignore Privacy Level checks for this file and click save.
They then get the below message.
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.
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?
Active Member
January 19, 2019
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"
Active Member
January 19, 2019
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.
October 5, 2010
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
1 Guest(s)