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
lp_sebba
Frequent Visitor

Salesforce report: Expression.Error: We cannot convert the value null to type List.

Hi, I am trying to load a Salesforce production report, but get this error immediately on load (already in the preview actually). This occurs for most, but not all reports that I have tried.

What are my options?

zsZCcpC

Best regards, Alex

5 REPLIES 5
GRocha
Regular Visitor

Hello,

 

I also have the same proble when connecting a Salesforce report to PBI. The code from advanced editor is the following:

 

let
Source = Salesforce.Reports("https://nameofmycompany.salesforce.com/", [ApiVersion=48]),
#"Filtered Rows" = Table.SelectRows(Source, each ([Label] = "Product features report"))
in
#"Filtered Rows"

 

When clicking on table 

 

GRocha_0-1697903191546.png

 

it shows up the same error:

GRocha_1-1697903217203.png

 

Also i have tried to changed source but the problem starts exactly when importing:

GRocha_0-1697903706189.png

 Any ideas to solve this?

 

Thanks

 

amitchandak
Super User
Super User

@lp_sebba , right click on the table and share the script from the advance editor. check some step with list, that is having problem

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak for the quick reply.

 

The script is very short...

let
Source = Salesforce.Reports("https://login.salesforce.com/", [ApiVersion=48]),
#"00O1G000002UMZVUA4" = Source{[Name="00O1G000002UMZVUA4"]}[Data]
in
#"00O1G000002UMZVUA4"

 

lp_sebba_0-1620022175980.png

 

Hi @lp_sebba ,

 

Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

Hi @lp_sebba ,

 

Please refer to the documentation https://docs.microsoft.com/en-us/power-query/connectors/salesforcereports   and reconnect.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors