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
Anonymous
Not applicable

undefined

I am new to power Bi and do not know M code. I am trying to pull object data from Salesforce but the object is so large I am getting an error "Datasource.error: query is either selecting too many fields or conditions are too complicated." I have selected the "Advanced Editor" option and tried to just pull in specific fields. However, when I do this I get a different error: 

Expression.Error: The field 'Tier_LOS__c' of the record wasn't found.

Details:

    Name=Loan__c

    Data=Table

    Kind=Table

    Label=Loan

    Hidden=FALSE

 

I know this is user error, I am not typing something correctly in the Advanced Editor box but I do not know what I am missing. Please help. Here is what I have in advanced editor:

 

let
Source = Salesforce.Data("https://login.salesforce.com/", [CreateNavigationProperties=true]),
Loan__c = Source{[Name="Loan__c"]}[Note_Date__c]



in
Loan__c

 
2 REPLIES 2
ReportGuru
Helper IV
Helper IV

Hi, were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector. 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

v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

If you try to get data from Salesforce instead of  "Advanced Editor"  as  below:

Connect to Salesforce objects in Power BI Desktop

 

Best Regards,

Lin

 

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

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.