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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ben-Dev
Helper II
Helper II

Structured Error Message String Interpolation - Non-Text -> Text Conversions

Hello,

 

When an error's Message.Parameters are interpolated into its Mesasge.Format to generate its Message, non-text parameters are automatically rendered as text. I'm wondering about a couple details of this conversion:

  • Behind the scense, is Text.From used to conver scalar values to text?
  • It looks like complex values (like table or list) are represented in the interpolated text simply by their literlal type name (e.g. any table will be interpolated into the Message simply as the literal word "table"). Is that always the behavior, or are there cases I'm missing?

 

Thank you!

1 ACCEPTED SOLUTION
artemus
Microsoft Employee
Microsoft Employee

The parameters of an error message function the same as Text.Format, which will format complex types like record, table and list, in addition to type as their simple type name. For most cases in depth details about an error belong in the Details field.

View solution in original post

3 REPLIES 3
artemus
Microsoft Employee
Microsoft Employee

The parameters of an error message function the same as Text.Format, which will format complex types like record, table and list, in addition to type as their simple type name. For most cases in depth details about an error belong in the Details field.

jennratten
Super User
Super User

Hello - error messages and the data type system are very complex topics.  Here are some resources that can help.

https://bengribaudo.com/blog/2020/01/15/4883/power-query-m-primer-part-15-error-handling 

https://radacad.com/exception-reporting-in-power-bi-catch-the-error-rows-in-power-query 

https://docs.microsoft.com/en-us/powerquery-m/power-query-m-type-system 

https://docs.microsoft.com/en-us/powerquery-m/m-spec-error-handling 

https://docs.microsoft.com/en-us/powerquery-m/m-spec-consolidated-grammar 

https://docs.microsoft.com/en-us/powerquery-m/m-spec-lexical-structure 

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super User

Thank you, @artemus and @jennratten!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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