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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Data Source Credential Error - Freshdesk API - Power BI Service

We have a PBI report that is connected to the Freshdesk API and uses Basic Authentication.  The report works great when refreshing locally from PBI desktop; however, we get an error when trying to set up the Data Source Credentials in the Power BI Service.

 

FreshdeskPBIRefresh.png

 

Here is a snippet from the PBI desktop file that is refreshing properly:

 

FreshdeskPBIRefresh_Desktop.png

 

The function that pulls from the API is using RelativePath and populating default parameters for the call.

 

FreshdeskPBIRefresh_M.png

 

Any help on resolving this error would be greatly appreciated!!!!

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

hi @Anonymous 

You may try to clear all permissions in "Data Source Settings" in Power Query Editor in Power BI Desktop app and then setting them again and publishing to the cloud refreshed requests done by Power BI Cloud.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hey Lin,

 

Thanks for the suggestion.  Unfortunately when I clear the permissions I still the error below in PBI Service:

 

FreshdeskPBIRefresh_ClearPerms.png

nickyvv
Most Valuable Professional
Most Valuable Professional

Maybe you need to append the "/v2" to the data source instead of the RelativePath?


Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


Anonymous
Not applicable

Hey @nickyvv ,

 

I've added the complete url back in and removed the RelativePath.  Here's what the M looks like now:

 

FreshdeskPBIRefresh_noRel.png

 

This here is the error I get now:

PBIerr.png

 

Here's an article from Chris Webb's blog on adding in RelativePath to get past the refresh issue.

 

https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power...

 

This seemed to get me past the Unsupported Function error but still had the authentication issue.

 

Any thoughts on this?

Hey @Anonymous ,

 

I know this is an old post but you can try the attached query. It worked for me when I was facing a similar issue, I hope it works for you too.

 

tsmaswabela_1-1637919083439.png

 

nickyvv
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous,

Sorry, I actually meant only adding the v2 to the Web.Contents function, so this:
https://xxx.freshdesk.com/api/v2
And leave the rest in the RelativePath to deal with the authentication as Chris mentions in his blog.


Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.