I am working in Excel2016 and have produced a PowerQuery to get information from a database, this server/database is populated from a named field in the workbook, when running on some machines (various machines Excel development is taking place on, over multiple accounts) this executes fine, however the QA machines are having the following error.
"Query 'TaskIdProc' (step'AutoRemovedColumns1') is accessing data sources that have privacy levels which cannot be used together. Please rebuild this data combination"
The code being used is as follows
let
ServerName = Text.From(Excel.CurrentWorkbook(){[Name="ServerName"]}[Content]{0}[Column1]),
DatabaseName = Text.From(Excel.CurrentWorkbook(){[Name="DatabaseName"]}[Content]{0}[Column1]),
TaskID = Text.From(Excel.CurrentWorkbook(){[Name="TaskName"]}[Content]{0}[Column1]),
Source = Sql.Database(ServerName,DatabaseName,
[Query="EXECUTE dbo.bsp_DeadlineHistoryByTaskID
@Task_ID_Param ='" & TaskID & "'"
]),
#"Removed Columns" = Table.RemoveColumns(Source,{"TaskGuid", "Task_ID", "InitialDeadline"}),
#"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"NewDeadline", "New Deadline"}, {"RequestedDeadline", "Requested Deadline"}, {"NewState", "State"}, {"ActionTaken", "Action"}, {"ReasonGiven", "Reason"}, {"UserName", "Who"}, {"ChangeTimeStamp", "When"}}),
#"Reordered Columns" = Table.ReorderColumns(#"Renamed Columns",{"New Deadline", "Difference", "State", "Action", "Reason", "Comment", "Who", "When", "Requested Deadline"})
in
#"Reordered Columns"
As you can see, the step in the error message does not exist in the query, and I have now hit a brick wall. I have tried ensuring that only one data source is used per line. Passing this to QA with all data connections being cleared. Ensuring that the step causing a problem does not exist.
This is Excel 2016, requiring backwards compatibility for 2013.