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
richard_pyra
Employee
Employee

Custom connector data sources unavailable

I've created a custom connector that consumes two oData data sources.  The first oData feed is passed an access key and returns an authentication token, which is then passed to the second service that returns the actual queriable data. The result set looks great inside of the PBI desktop.  However, when I save my report to my Power BI report server I am unable to configure my data source connection (it is disabled) and therefore unable to to set up a scheduled refresh.  When I choose the out of the box oData feed, and select my first oData feed as a source, these two configurable items are available for me to use.  Is there something that I am missing in my custom connector that is not allowing these features to be available to me.? I am a newbie to m query and I am using the TripPin samples as a guide to my learning.  Wondering if there is something that I haven't defined in my connector that I need to? I am using Key for my Authentication method. My solution is being designed to run against on-premise data sources. My code is approximate to this:

 

accessServiceUrl = "https://xxxx/portalaccess.svc/GetAccessToken?id="

[DataSource.Kind="SourceData", Publish="SourceData.Publish"]
shared SourceData.Feed = () =>
let
credentialToken = Extension.CurrentCredential()[Key],
serviceUrl = Text.Combine({accessServiceUri, credentialToken}),
source = OData.Feed(serviceUrl),
sourceDataSvc = Lines.ToText(source[serviceUrl]),
accessToken = Lines.ToText(source[token]),
authToken = Text.Combine({"Bearer ",accessToken}),
dataResults = OData.Feed(sourceDataSvc, null, [Headers = [Authorization = authToken]]),
in
dataResults;

 

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @richard_pyra 

I'm afraid custom connector doesn't support in Report server.

https://community.powerbi.com/t5/Report-Server/Can-Custom-Connectors-be-used-with-Power-BI-Report-Se...

 

Best regards

Maggie

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