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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
Employee
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
Employee
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.

Thank you, @artemus and @jennratten!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors