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

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

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.