cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ben-Dev
Helper I
Helper I

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
Microsoft

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
Microsoft

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.

Thank you, @artemus and @jennratten!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors