Forum Discussion
Getting Git integration to connect and sync
Hi,jyokela Thank you for your reply.
After discussing your issue with other members of the team, I think it may be that you are getting your Access tokens wrong.
Please try to get Personal access tokens (classic)
and set all the permissions, you may be having this problem because you don't have the corresponding permissions and therefore you are not accessing the content you expected.
URL:
Managing your personal access tokens - GitHub Docs
Here is my test:
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
- Anonymous1 year agoNot applicable
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 mainsettings >choose Developer Settingschoose 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 repositoriesIt'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 filessemantic model successfully uploaded to github repositoryPoints 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 DocsI hope my test can help you, looking forward to your reply!
- Anonymous1 year agoNot applicable
Hi,jyokela .I am glad to help you.
Has your problem been solved?
If you have found suitable solutions, please share them as it will help more users with similar problems.
Or you can mark the valid suggestions provided by other users as solutions.
Thank you very much for your understanding and support of Power BI.I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- jyokela1 year agoFrequent Visitor
no, I just cannot get it to work and don't have time to deal with it, so putting it on the back burner for now.