T-SQL query may fail when a scalar user-defined function (UDF) contains an ordered aggregate

Microsoft lists this known issue for Data Warehouse; its status is Active. It was published on 18 November 2026.

Active1 version

Facts

Microsoft id
2040
Status
Active
Products
Data Warehouse
Product family
Data Warehouse
Status
Active
Published
18 November 2026
Issue ID
2040
Status pages
Microsoft Fabric status
First captured by us
Microsoft last modified
Source
Microsoft Fabric and Power BI known issues · open the original at Microsoft

Microsoft says

Queries calling a scalar user-defined function (UDF) containing MEDIAN, QUANTILE, PERCENTILE_CONT, PERCENTILE_DISC, or JSON_ARRAYAGG with ORDER BY, may fail during compilation and terminate the connection.

Microsoft Fabric and Power BI known issues,

Read Microsoft's full post

What Microsoft changed

One version so far. If Microsoft edits it, each change shows here with what was removed and added.

  1. v1 First version we captured

    As first seen: Active
    Status
    Active

    Seen by us · Microsoft's timestamp · Microsoft's page

Incidents around this change

Possible connection

Incidents in the same services that started shortly after this change took effect. A shared service and time is not evidence that the change caused them.

Other changes for Microsoft Fabric

Last updated