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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Helper IV
Helper IV

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors