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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Kolumam
Post Prodigy
Post Prodigy

Data source Error when connecting Opportunity object from Salesforce

Hi All,

 

I have been facing this issue for the past 1 year that when I connect Opportunity object from Salesforce it is throwing me this error. I contacted Salesforce and they told me that this error is coming from Power BI side and that their API version is 29. When I asked power BI they said they don't have work around for this. This is really annoying as everytime I had to extract the Opportunity object into a excel and connect it with power BI and hence it's useless even if auto refresh is enabled. Is there any work around to fix this ? Kindly help. 

 

12 REPLIES 12
QueryWhiz
Post Patron
Post Patron

Hi @Kolumam were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector, which pulls data from SF objects API. I've tried windsor.ai, supermetrics 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

pablobarra
Advocate I
Advocate I

Hi @Kolumam

 

Are you able to get data from other objects?

Have you tried with Sandbox?

 

Please try with:

In Power BI, Gest data, Blank Query

In query editor go to View, Advanced Editor

 

Copy the following:

let
Source = Salesforce.Data("https://login.salesforce.com/"),
#"Filtered Rows" = Table.SelectRows(Source, each ([Name] = "Opportunity")),
#"Expanded Data" = Table.ExpandTableColumn(#"Filtered Rows", "Data", {"Id", "RecordTypeId", "Name", "StageName"}, {"Id", "RecordTypeId", "Name.1", "StageName"})
in
#"Expanded Data"

 

Thanks

 

Pablo

Hi @pablobarra

 

I copy pasted your command in query editor. IT gave me the same error.

Power BI Opportunity error.PNG

 

Kindly help me with this. Thanks

 

Kolumam

Hi @Kolumam

 

Are you able to get data from other objects, like account, contacts, etc?

Have you tried connecting to opportunities in Sandbox (Prelive/test)?

 

You are connecting to an standard object,  there shlould not be issues.

You can try with the same command but first:

  1. In Power BI delete cache
  2. copy code to query editor
  3. if you get the same error, try "Refresh Preview"

Thanks

Pablo

Hi @pablobarra

 

Even after clearing the cache the same error prevails. I can connect to other objects like accounts, leads etc.. The reason this is not working is because of the API version 29 for Opportunity object. Please see the screenshot even after clicking refresh all.

 

PBI Error.PNG

 

Thanks

Krishnamurthy

Hi @Kolumam

Did you "Refresh preview"?

Pablo

HI @pablobarra

 

Yes I tried Refresh preview. It did not work.

 

Thanks

Krishna

Hi @pablobarra

 

Even when I connect to Sandbox I get the same error. Kindly help.

 

Thanks

Krishna

anktaggrwl
Kudo Collector
Kudo Collector

I had a tremendous amount of lag and issues with loading data from SFDC in the beginnig and it turned out that our instance had a TON of validation rules causing the issues... so we added 'View All' to my user profile to bypass SFDC having to go through and check through validation rules before it served up data - and it instantly made pulling objects a lot smoother...

 

Do you have the ability to get 'view all' added as a permission set to your user profile in SFDC?

Hi  @anktaggrwl

 

Where do I do this ?

 

Thanks

Krishna

 

Not sure if you are sysadmin or have the right access to add it yourself - but it would be in 'Advanced User Details' and then navigate down to 'permission sets' and add the 'View All Data' permission set.

Capture4.PNG

Capture3.PNG

Hi @anktaggrwl

 

It was in Read and I enabled View all and then tried connecting to Power Bi. Still the same error.

 

Thanks

Krishna

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors