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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

salesforce service cloud invalid token w both PQuery and PBI desktop

Hi all,

 

Im trying to connect to Salesforce Service CLoud  Sandbox with no luck. I get the error "Service has returned invalid token".

 

I have the latest PBI desktop and Excel Query installed.

 

I've also tried to make the registry changes mentioned here.

https://social.technet.microsoft.com/Forums/en-US/92811d44-1165-4da2-96e7-20dc99bdf718/can-power-que...

 

Has anyone been able to query data from Service CLoud (objects or reports)? Should there be some specific setting done in the Salesforce end to enable data connection? I have atm ordinary user license. And should be able to query data as an ordinary user.

 

EDIT: also tried to add own IP to allowed list without luck.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Solved!

 

Thanks to this thread: https://community.powerbi.com/t5/Desktop/Power-BI-Desktop-salesforce-object-connector-quot-please-sp...

 

The problem must have been that Im operating in Sandbox. Tried to connect directly to the sandbox URL. Seems to be that I needed to use https://test.salesforce.com instead. It may be that the registry changes were needed to. Dont know yet.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Solved!

 

Thanks to this thread: https://community.powerbi.com/t5/Desktop/Power-BI-Desktop-salesforce-object-connector-quot-please-sp...

 

The problem must have been that Im operating in Sandbox. Tried to connect directly to the sandbox URL. Seems to be that I needed to use https://test.salesforce.com instead. It may be that the registry changes were needed to. Dont know yet.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors