Forum Discussion

jaryszek's avatar
jaryszek
Icon for Super User rankSuper User
1 year ago
Solved

Custom connector You can't schedule refresh for this semantic model because the following data sourc

Hello, i created custom connector to github: [DataSource.Kind="GitHub", Publish="GitHub.Publish"] shared GitHub.Contents = (repositoryName as text, optional folderPath as text) => let ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi jaryszek ,

    Thanks for the update and the video reference!
    The setup in the video works fine in Power BI Desktop, but the Service is a bit stricter when it comes to scheduled refresh. It expects the base URL to be static and predictable. To get around this, try updating your connector so that the baseUrl is fixed:
    https://api.github.com/repos/octocat/ 

    Just replace octocat with your GitHub username or org. Then you can build the rest of the path using RelativePath like below:
    RelativePath = repositoryName & "/contents/" & folderPath.

    Also,double check that your privacy level is set to Public or Organizational, and take a look at the refresh history in case it gives more clues.

    If this resolves your query,consider accept it as solution.

    Regards,
    Pallavi.