Forum Discussion
Getting Git integration to connect and sync
I am using the classic personal access token, I have tried the version with just REPO permissions and one with ALL the permissions checked, all have the same result. I have also went into the orginization settings and allowed those connections...
And created another token, just in case a new one was required...
I have tried to link to my personal repository and the orginization repositiory, nothing seems to give me any different result. I have tried both the classic and the beta tokens. When I make an error I am getting notifications in Power BI that a connection failed or cannot be made, but I have made 6 different "successful" connections and they all end up bringing be back to the same result... where I cannot sync
Hi,jyokela .I am glad to help you.
I retested using the personal access token (calssic) and it works fine!
You can do the same with the steps I've provided to see if it works, and thus narrow down the possible scope of the problem.
I created a repository branch main
settings >choose Developer Settings
choose new personal access tokens(calssic)
give your token a descriptive name.
I give full permissions when setting up the token.
Log in as administrator to power BI service, manage portal, open settings
git integration > users can synchronize workspace projects with GitHub repositories
It's important to wait for this to take effect (I waited 5 minutes), as it takes time to take effect.
After waiting for a while, I was able to connect to the git repository branch and was able to transfer files
semantic model successfully uploaded to github repository
Points that I tested down and think need attention:
1. Administrator enable the option of git hub in Power BI Admin portal.
2. After connecting to the git hub, make sure the branch exists and wait for the token to take effect (I waited for a while during the test).
3. When setting up tokens, you must give as many permissions as possible (I gave all permissions in my test, you can try to give all permissions first to test, and then slowly reduce the token permissions to narrow down the scope and check which permissions are necessary).
URL:
Managing your personal access tokens - GitHub Docs
I hope my test can help you, looking forward to your reply!