Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
shanerolle
Frequent Visitor

Salesforce Auto-Refresh Issues

Good morning everyone,

 

I have recently set up a report using Power BI Desktop that pulls information from Salesforce into Power BI. I would like to set the report to auto refresh in the Power BI Service, but when I try to set the credentials to connect to Salesforce, I get the following messages in return. 

 

Salesforce Issue 1.PNG

Salesforce Issue 2.PNG

 

The top image is the error I get after entering the credentials the first time. The issue with this is I know the credentials are correct because when I enter them on the Salesforce pop-up (when I click Data Source Credentials, and then Edit Credentials, it gives me a pop-up from Salesforce), the Salesforce website accepts them, goes through, and closes the pop-up, then Power BI gives me the error. I proceed to then try again (just incase it somehow accepted the wrong credentials) and then every time, the 2nd image is what I get back in return. It always mentions an invalid token, but I have no idea what it is referring to or how to fix it.

 

The frustrating part is that I can get it to refresh without failure with the same account/credentials on Power BI Desktop manually, however Power BI Refresh returns an error each time I try to set it up to automatically refresh. I do not want to have to manually refresh this report each and every time someone needs to access it, but I have tried a dozen different options and have no idea how to fix it.

 

Is there something I am doing wrong? Am I missing something? How can I fix this?

 

Any advice is appreciated.

 

Thank you,

Shane Rolle

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @shanerolle 

 

I'd like  to suggest you refer the following requirements and considerarions about Salesforce connector.

  • Connected with a production Salesforce account that has API access enabled

  • Permission granted to the Power BI app during sign in

  • The account has sufficient API calls available to pull and refresh the data

  • A valid authentication token is required for refresh. Salesforce has a limit of five authentication tokens per application so make sure you've five or less Salesforce data sets imported.

  • The Salesforce Reports API has a restriction that supports up to 2,000 rows of data.

 

For further information, please refer the document .

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
ReportGuru
Post Patron
Post Patron

Hi @shanerolle were you able to find a solution? I've used the Salesforce connector but I had some issues sometimes. As a workaround, maybe you can try to test your connection with a 3rd party connector. I've tried windsor.ai, supermetrics (which doesn't have PBI as a destination, so you first have to export to Google Sheets and then export to PBI) and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the Salesforce connector in the data sources list:

 

SALESFORCE-1.png

 

After that, just grant access to your Salesforce account using your credentials, then on preview and destination page you will see a preview of your Salesforce fields:

 

SALESFORCE-2.png

 

There just select the fields you need. It is also compatible with custom fields and custom objects, so you'll be able to export them through windsor.  Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url. 

 

SELECT_DESTINATION_NEW.png

ninalee
Helper I
Helper I

I had just the same issue, Salesforce seems to be not bad auto parts company, right? What about cj pony parts? Everything I found in the web are these cj pony parts reviews , all of them look rather objective and written by real customers. 

v-alq-msft
Community Support
Community Support

Hi, @shanerolle 

 

I'd like  to suggest you refer the following requirements and considerarions about Salesforce connector.

  • Connected with a production Salesforce account that has API access enabled

  • Permission granted to the Power BI app during sign in

  • The account has sufficient API calls available to pull and refresh the data

  • A valid authentication token is required for refresh. Salesforce has a limit of five authentication tokens per application so make sure you've five or less Salesforce data sets imported.

  • The Salesforce Reports API has a restriction that supports up to 2,000 rows of data.

 

For further information, please refer the document .

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I have the exact same issue. Just to clarify. I have

-PowerBI desktop refresh SF OK. Does PB desktop not require SF API to connect?

-SF is professional version, which has no API according to my IT guy. 

 

Can you confirm if it is because PB gateway Service requires API and my SF has no API that is the reason?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.