Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

[Expression.Error] We cannot convert a value of type List to type Record.

Hi there

I am new to PowerBI and learning as I go. I am using PowerBI to query a REST API, and this is all working correctly. I have created a measure which again works correctly, however I have created a new entry in one of the current fields (in the API backend) that I pull from the API (which incidently was working correctly) which on refreshing the data, selecting the column then 'load more' I get the following:

 

[Expression.Error] We cannot convert a value of type List to type Record.

 

The field before had some simple text entries in it and I have added another entry - again text based - nothing complex.

 

Could some steer me as to the nature of why I am getting this error please so I can understand how to fix it?

 

Thanks

21 Replies

  • edhans's avatar
    edhans
    Icon for Community Champion rankCommunity Champion

    That error is coming from Power Query when you are loading data, and somewhere either in your M code or source data, you are getting a list of data and are then trying to handle it like a record, thus the error.

     

    Go into Power Query and look at the query that should now have a yellow triangle next to it and see if you can find the source of the error. We'd need screenshots to really help. If you find a "cell" that has the word "Error" in it, please click on the white area next to the word Error (not on the word Error itself) and give us a usable screenshot of what is appearing in the small window at the bottom of the query in yellow.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi thanks for the reply, I check the query editor no steps have a yellow triangle against them. I am selecting the column

      Then selecting the drop down

      I click on 'Load more' then I recieve the error

       

      Hope that helps

      • edhans's avatar
        edhans
        Icon for Community Champion rankCommunity Champion

        That is because in your data, beyond the first few hundred rows it initially looks at, there is a List embedded where it expects a Record. When you click Load More, it reads the entire data set until:

        • it gets 1,000 values for the filter, at which point it stops
        • It reads all of the records and populates the filter with what it found, not to exceed 1,000 records.

        Yours stops when it encounters an error. It may not even be in that field. It just cannot process more.

         

        On this table, tell it to Keep Errors.

        The do a Refresh All so it reads everything. It should show you the record(s) that have the issue.