This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi, I am trying to make an XML custom connector, so that when I connect to that file all the transformations are done.
My project name is XMLConnector
This is my XMLConnector.pq code
section XMLConnector;
[DataSource.Kind="XMLConnector", Publish="XMLConnector.Publish"]
shared XMLConnector.Contents = (path as text) =>
let
Source = Xml.Tables(File.Contents(path))
in
Source;
// Data Source Kind description
XMLConnector = [
Authentication = [
Anonymous = []
],
Label = Extension.LoadString("DataSourceLabel")
];This is my XMLConnector.query.pq
let
Source = XMLConnector.Contents("C:\MyFile.xml")
in
SourceWhen I try to run this app, I am getting M query error as follows:
Thanks in advance.
Solved! Go to Solution.
@Anonymous ,
I would suggest you to refer to doc and github tutorial and submit your issue to the issues section.
https://github.com/microsoft/DataConnectors
https://docs.microsoft.com/en-us/power-query/startingtodevelopcustomconnectors
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
I would suggest you to refer to doc and github tutorial and submit your issue to the issues section.
https://github.com/microsoft/DataConnectors
https://docs.microsoft.com/en-us/power-query/startingtodevelopcustomconnectors
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |