I'm using the R script to handle a pdf dataset in the Power BI Desktop query editor. But I can't make an schedule refresh from the R data source using the personal gateway in the Power BI Service. The error "Credentials are invalid" is displayed. I am using the "Windows" authentication method, and I installed R on the same computer that Personal Gateway was installed.
I know this post may be old, but i experienced the same thing when switching from loading from my laptop to a server once we were sure out business wanted to continue using powerbi as our dashboard/reporting tool.
My experience was it kept saying when running on personal gateway on the server that the token key was wrong.
My version that worked:
Personal gateway edition 3000.0.277 works perfectly originally i had installed 3000.0.144.3 and this didn't work.
Hope this might help those who want to not switch off powerbi functionalities
I have the same issue and it was occuring with the latest version of R script (3.6.1 ) and got fixed after using the lower version of R script (3.5.0). Now we can successfully sign in to the R script (under data source credentials for Personal gateway ) and refresh the r scripts dataset in Power BI service.
Please mark this as solution, if this helps you !!