cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jeal888
Regular Visitor

Query contains unknown or unsupported data sources (Folder is used in the report)

Dear community, hope you can help

 

I have a network folder with xml files inside. Using "Get Data - Folder" I have uploaded the data from xml files to the report. 

 

I have published the report to the cloud, but i can`t shedule the data refresh: 

 

Capture.PNG

 

Here is the first raws of the query:

 

let
Source = Folder.Files("\\server\folder\windows\"),
#"Removed Columns" = Table.RemoveColumns(Source,{"Extension", "Date accessed", "Date modified", "Date created", "Attributes", "Folder Path"}),
#"Filtered Hidden Files1" = Table.SelectRows(#"Removed Columns", each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File from \\server\folder", each #"Transform File from \\server\folder"([Content])),
#"Removed Other Columns1" = Table.SelectColumns(#"Invoke Custom Function1",{"Name", "Transform File from \\server\folder"}),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from \\server\folder", Table.ColumnNames(#"Transform File from \\server\folder"(#"Sample File"))),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"ReportHost", type any}, {"Attribute:name", type text}}),

4 REPLIES 4
Super User IV
Super User IV

Re: Query contains unknown or unsupported data sources (Folder is used in the report)

Do you have a data gateway installed?


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Jeal888
Regular Visitor

Re: Query contains unknown or unsupported data sources (Folder is used in the report)

Of course, i am using On-premises data gateway to pull data from ad, ms sql, etc. Additionaly a have configured those folder as a data source:

 

2.PNG

Super User IV
Super User IV

Re: Query contains unknown or unsupported data sources (Folder is used in the report)

OK, next dumb question, are the data sources for Windows Scan Results and Linux Scan Results Folder queries to that folder defined in your gateway or are they something else, like CSV files that happen to reside in that folder?


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Jeal888
Regular Visitor

Re: Query contains unknown or unsupported data sources (Folder is used in the report)

No, Linux and Windows scan results refers to the network folders only, there are no other data sources in the query. 

Helpful resources

Announcements
‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors