cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors