Fix RETURNS Not Supported Error in Microsoft Fabric Data Warehouse
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.

- 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.
Make sure you have your complete T-SQL function script copied and ready, as you will need to reference it when verifying syntax limitations.
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.
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.
Copy your entire CREATE or ALTER FUNCTION script along with the exact error message you received.
Navigate to the official Microsoft Fabric Data Warehouse community forum at https://community.fabric.microsoft.com/t5/Data-Warehouse/bd-p/ac_datawarehouse.
Create a new discussion thread detailing your business logic goal, providing the failing script, and asking for Fabric-compatible alternative syntaxes.
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. Download the Suite: Get the free WPS Office installer from the official website and run the setup.
- 2. Open Exported Data: Launch WPS Spreadsheet and open your .csv or .xlsx data dumps generated from your data warehouse.
- 3. Analyze and Report: Use familiar pivot tables and charting tools to analyze data, then draft your final reports in WPS Writer.

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.




