Forum Discussion
Using web.content xml to stage data then reference it for multiple queries
1. Original query to get the unique code (D20171031T115921-CBTFFOOKL) for users as seen in step two:
= Xml.Tables(Web.Contents("http://********:8080/api/users/", [Headers=[Authorization="ApiKey ad2a1ed1-dec1-4c2b-ba60-5f7397932bee", Accept="application/xml"]]))
2. New web.content url query with unique code and /metadata/
http://********:8080/api/users/22/queued/D20171031T115921-CBTFFOOKL/metadata/
This is the query that returns the error I'm describing.
3. Xml.Tables(Web.Contents("http://*********:8080/api/users/" & Text.From([Table.QueueID]) & "/queued/" & Text.From([Table.ID]) & "/metadata/", [Headers=[Authorization="ApiKey ad2a1ed1-dec1-4c2b-ba60-5f7397932bee", Accept="application/xml"]]))
Formula.Firewall: Query 'Merge1' (step 'Added Custom') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.
Step two is where I run into an issue about building a query. I am so close to getting this dashboard data imported but this has had me stumped for over a week! Thank you ahead of time!
The error is happening because I cannot combine an external data source with another query. As shown in this blog. I have been trying my best to modify what I have to follow this article but can't seem to get it working.
https://www.excelguru.ca/blog/2015/03/11/power-query-errors-please-rebuild-this-data-combination/
Anyone have any suggestions? I feel like I know what I need but just don't know how to modify my data requests to accomplish it.