Forum

All Users On My Net...
 
Notifications
Clear all

All Users On My Network Unable to Refresh Data in Excel Workbook Feed by csv Files in a Local Directory

6 Posts
3 Users
0 Reactions
265 Views
(@mjanecek)
Posts: 4
Active Member
Topic starter
 

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.jpg

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

privacy-levels.jpg

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

They then get the below message.

DataSourceError.jpg

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.jpg

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?

 
Posted : 02/03/2019 1:36 pm
(@mynda)
Posts: 4761
Member Admin
 

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

 
Posted : 02/03/2019 6:28 pm
(@mjanecek)
Posts: 4
Active Member
Topic starter
 

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:UserskolszewskiFiles 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:UserskolszewskiDate 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:UserskolszewskiFiles 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"

 
Posted : 06/03/2019 1:01 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Mark,

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

Mynda

 
Posted : 07/03/2019 8:25 am
(@mjanecek)
Posts: 4
Active Member
Topic starter
 

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.JPGProperties-General.JPG

 
Posted : 08/03/2019 10:14 am
Philip Treacy
(@philipt)
Posts: 1631
Member Admin
 

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 UsersUsername, 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

 
Posted : 08/03/2019 9:31 pm
Share: