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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Not Able to Schedule Auto Refresh Because of Custom Function

Hi

 

Issue: Not Able to Schedule Auto Refresh Because of Custom Function.

let say below is the function:

fn_Sprint = (URL as text) =>

let

      Source =  WebContents(URL)

in 

     Source

 

and I have table with many rows - let say for example we take 3 rows

now for each row we call this function and pass the URL column of table to the function as parameter.

 

but when I check in the data source settings, it says "Some data sources may not be listed because of hand-authored queries".

also in the Power bi service getting below error message "You can't schedule refresh for this dataset because the following data sources currently don't support refresh"

 

Also what I found out is that if we hardcode the value of the URL in the function itself then we are able to Schedule the auto refresh.

fn_Sprint = (URL as text) =>

let

    Source =  WebContents("https://example.atlassian.net/rest/api/3/search")

in 

    Source

 

so the things is it need some value at the start for the URL, if we have the value then no issue but if there is not URL then there is issue.

 

How can we solve the this?

I have also tried below thing but it also does not work

 

BaseURL = if URL = "" then "https://example.atlassian.net/rest/api/3/search" else URL

 

Is there any one who can help with this?

 

 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,
if your URL is a bit more complex than the one you've posted, then this article might hold some useful tips: 

http://blog.datainspirations.com/2018/02/17/dynamic-web-contents-and-power-bi-refresh-errors/



Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

5 REPLIES 5
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,
if your URL is a bit more complex than the one you've posted, then this article might hold some useful tips: 

http://blog.datainspirations.com/2018/02/17/dynamic-web-contents-and-power-bi-refresh-errors/



Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

Hi @ImkeF, Thanks for help, I appreciate it.

edhans
Super User
Super User

Hi @Anonymous - web sources require an on-prem gateway for security purposes. Has the web URL been added to a gateway?



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Hi @edhans, we are fetching the data from the JIRA API in Cloud. so we don't any any data gateway in power bi.

Greg_Deckler
Community Champion
Community Champion

@Anonymous Hmmm. Maybe @edhans or @ImkeF has a thought here. Otherwise, You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors