Azure Synapse after connect with github account "The personal access token is invalid. Please provide a valid token."

Robson Pelegrini 41 Reputation points
2022-12-26T21:41:26.35+00:00

Hello,

I'm try connect a github repo to load a synapse project and I get error "The personal access token is invalid. Please provide a valid token".

I tried with 2 differents github account's and have the same error.

Where am I wronging?

274153-image.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,417 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,640 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Robson Pelegrini 41 Reputation points
    2023-01-03T21:02:07.48+00:00

    Hello @PRADEEPCHEEKATLA-MSFT

    Actually, I have to grant access for user in synapse access control, in a role, like synapse artefact user.

    Anyway, I think that message "The personal access token is invalid. Please provide a valid token." could be better.

    1 person found this answer helpful.

  2. PRADEEPCHEEKATLA-MSFT 78,246 Reputation points Microsoft Employee
    2022-12-27T09:31:30.897+00:00

    Hello @Robson Pelegrini ,

    Thanks for the question and using MS Q&A platform.

    There are a few possible reasons why you might be getting this error message when trying to connect a GitHub repository to a Synapse project. Here are some things you can try:

    • Make sure that you are using a personal access token (PAT) with the correct permissions. In order to connect a GitHub repository to Synapse, you will need to create a PAT with the repo scope. This will give the PAT access to all repository-level actions in the repository, including read and write access.
    • Check that the PAT has not expired. PATs have a maximum lifetime of one year, after which they will expire. If your PAT has expired, you will need to create a new one in order to continue using it.
    • Make sure that you are using the correct PAT. If you have multiple PATs available, it's possible that you might be using the wrong one. Double-check that you are using the correct PAT for the repository you are trying to connect to.
    • Check that the PAT has not been revoked. If you have revoked the PAT, or if it has been deleted, it will no longer be valid and you will need to create a new one.
    • Please try to revoke the personal access token and create a new one for your user account and see if that helps to resolve your issue.

    If you have checked all of these things and are still having trouble, it's possible that there might be an issue with the Synapse integration itself. In this case, you may want to try to open a support ticket for further assistance.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators