Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mmsiegel
New Member

Query Contains Unknown Function Name

Hello PowerBI Community,

 

I was recently trying to modify a Custom Data Connector to work with the PowerBI Service, but I ran into many issues when trying to Schedule a Refresh for the dataset.  Mainly variants of the following error: Query contains unknown function name.

In order to try to diagnose the issue, I decided to put away my custom connector and instead implement the TripPin example (stage 9) that is in the official Microsoft documentation: https://docs.microsoft.com/en-us/power-query/samples/trippin/9-testconnection/readme

 

I built this project, set up a Personal mode gateway (the latest version), and uploaded the PBIX.  Once inside the service, the Datasets tab for this connector still showed the same type of error as my other custom connector.  Screenshot attached.

 

TripPinScreen1.PNG

 

Since both connectors are showing this error, does anyone know what other factors could be causing this to occur?

 

As a side note, for my custom connector, I have tried most of the solutions in other community posts, especially those referencing: https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power... but since this issue is also effecting the Microsoft TripPin example, I'm inclinded to believe something else is a factor here.  Any advice would be appreciated.

 

Thank you for your help.

1 ACCEPTED SOLUTION
mmsiegel
New Member

Update: Solved.

 

I was finally able to get this to work properly.  The "Query contains unknown function name" error is slightly misleading.  The actual issue is related to the personal gateway not being configured and linked to the PowerBI Service account correctly.

 

If you have the Personal Gateway downloaded and installed, make sure you sign in with your PowerBI account, verify that the Custom Connectors folder is correct and has correct permissions (if using the non-personal gateway).  Verify the Network Ports test under the Diagnostics tab as well.

 

PBIworking1.PNG

 

If the personal gateway is running correctly, you should see it appear in your PowerBI Service Data after you reopen the "Discover Data Sources" link under the error message.

 

PBIworkingImage4.png

 

I'm not sure why this setup was causing me issues yesterday, but it appears the solution is to re-install/tinker with the Personal Gateway settings in order to resolve the issue.  To clarify, my custom connector is using OAuth authentication and the Web.Contents method to return JSON data from a REST API.  When the gateway is linked to the dataset and functioning properly, you should get an OAuth credential prompt when attempting to set up the "Data Source Credentials".

 

 

 

View solution in original post

1 REPLY 1
mmsiegel
New Member

Update: Solved.

 

I was finally able to get this to work properly.  The "Query contains unknown function name" error is slightly misleading.  The actual issue is related to the personal gateway not being configured and linked to the PowerBI Service account correctly.

 

If you have the Personal Gateway downloaded and installed, make sure you sign in with your PowerBI account, verify that the Custom Connectors folder is correct and has correct permissions (if using the non-personal gateway).  Verify the Network Ports test under the Diagnostics tab as well.

 

PBIworking1.PNG

 

If the personal gateway is running correctly, you should see it appear in your PowerBI Service Data after you reopen the "Discover Data Sources" link under the error message.

 

PBIworkingImage4.png

 

I'm not sure why this setup was causing me issues yesterday, but it appears the solution is to re-install/tinker with the Personal Gateway settings in order to resolve the issue.  To clarify, my custom connector is using OAuth authentication and the Web.Contents method to return JSON data from a REST API.  When the gateway is linked to the dataset and functioning properly, you should get an OAuth credential prompt when attempting to set up the "Data Source Credentials".

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors