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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jcawley
Helper III
Helper III

API List Function Assistance

Good afternoon all,

So I need help configuring a table referencing my API… I cannot get a list of elements to populate! I am receiving the following error:

"Expression.Error: We cannot convert a value of type Record to type Text.
Details:
Value=
379662=379662
396454=396454
396455=396455" ... etc etc

I believe I need to insert a List function (perhaps List.Distinct?), but I am not sure where to plug that into. I'm thinking perhaps part of Table.Transform. Anyhow, the API looks like this:

cap4.JPG

The function I am using looks like:

cap5.JPG

 

And the table:

yoyo.JPG

Any help would be greatly appreciated!

2 REPLIES 2
Anonymous
Not applicable

Hi @jcawley 

I found some blogs and I hope they could help you solve your problem.

Blog1: Expression.Error: We cannot convert a value of type Table to type List

Blog2: Expression.Error: We cannot convert a value of type Record to type Text - source is List of records

Blog3: Expression.Error: We cannot convert a value of type Record to type Text.

 

Best Regards,

Rico Zhou

 

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

mahoneypat
Microsoft Employee
Microsoft Employee

What happens if you hard code that product # (that looks like a date?) into the url and run that M code as a query instead of a function, so you can see which step causes the error?  I am curious why you are using Record.ToTable, and suspect that is it.  Typically with REST API JSON responses such a step (and the transpose step) is not needed. 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.