logo
search
Others

Fix RETURNS Not Supported Error in Microsoft Fabric Data Warehouse

Maira MehtabMaira Mehtab Sep 28, 2026 869 views

Question details

The user needs to resolve an error indicating that the RETURNS syntax is not supported when trying to create a User-Defined Function (UDF) in Microsoft Fabric Data Warehouse.

WPS Spreadsheet — the best free Excel alternative for data analysis and spreadsheet management
Product
Microsoft Fabric Data Warehouse
Device & OS
not provided
Scenario
Attempting to execute a T-SQL script to create or alter a User-Defined Function.
Observed behavior
The system fails to execute the script and throws an error stating that RETURNS is not supported for CREATE or ALTER FUNCTION.
Before you start

Make sure you have your complete T-SQL function script copied and ready, as you will need to reference it when verifying syntax limitations.

Solution 1Recommended

Review T-SQL Limitations and Consult the Microsoft Fabric Community

Because Microsoft Fabric Data Warehouse only supports a specific subset of standard T-SQL, certain function syntaxes like RETURNS may be restricted. Seeking guidance from the official community is the best way to find a supported workaround.

Microsoft Fabric Data Warehouse does not support the full T-SQL surface area available in traditional SQL Server. Multi-statement table-valued functions or specific scalar function syntaxes that rely on the RETURNS clause may trigger this error.

1
Verify Supported Syntax

Check the official Microsoft Fabric Data Warehouse documentation to confirm which types of User-Defined Functions (such as inline table-valued functions) are currently supported.

2
Gather Error and Script Details

Copy your entire CREATE or ALTER FUNCTION script along with the exact error message you received.

3
Visit the Fabric Community

Navigate to the official Microsoft Fabric Data Warehouse community forum at https://community.fabric.microsoft.com/t5/Data-Warehouse/bd-p/ac_datawarehouse.

4
Post for Specialized Assistance

Create a new discussion thread detailing your business logic goal, providing the failing script, and asking for Fabric-compatible alternative syntaxes.

Alternative Approaches: Consider rewriting the function logic into a standard SELECT statement or a supported View if the specific function type is deprecated or unsupported in Fabric.
Free Microsoft Office alternative

Analyze Your Fabric Data Exports with WPS Office

While Microsoft Fabric manages your massive data workloads, WPS Office provides a lightweight, entirely free alternative to Microsoft Office for opening your exported CSVs, creating data reports, and presenting your insights without heavy subscriptions.

  1. 1. Download the Suite: Get the free WPS Office installer from the official website and run the setup.
  2. 2. Open Exported Data: Launch WPS Spreadsheet and open your .csv or .xlsx data dumps generated from your data warehouse.
  3. 3. Analyze and Report: Use familiar pivot tables and charting tools to analyze data, then draft your final reports in WPS Writer.
Fully compatible with Microsoft Excel (.xlsx), Word (.docx), and PowerPoint (.pptx) file formats.Lightweight installation ensures fast loading and smooth handling of large data exports.Familiar ribbon interface means no learning curve for Microsoft Office users.Built-in PDF editing tools for easy report distribution and sharing.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Microsoft Fabric Data Warehouse support all T-SQL commands?

Microsoft Fabric Data Warehouse is built on a modern, distributed architecture optimized for massive analytical workloads. Consequently, it supports a specific subset of T-SQL, omitting certain traditional SQL Server features that do not align with distributed computing efficiency.

How can I implement custom logic if CREATE FUNCTION fails?

If scalar or multi-statement functions are unsupported, you can often achieve the same result by embedding the logic directly into your SELECT statements, creating standard Views, or using Stored Procedures.

Where can I request support for specific T-SQL features in Fabric?

Feature requests and product feedback should be submitted to the Microsoft Fabric Ideas portal, where the product team reviews community suggestions for future updates.