Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Dear all,
I have a User Data Function defined as below:
This function simply creates a file in the Lakehouse based on the input file name and path.
However, when I invoke this function in a pipeline using the Org account option for the connection, the function fails with the following error.
The invoked function run with error:
Error code 2492
Failure type User configuration issue
Details Data function set execution failed with error message - 'Failed to get udf metadata with https status code - Forbidden & reason - {"error":{"code":"InvalidRequest","message":"Tenant not authorized for cluster"}}'
But when I invoke it in pipeline, it worked normally:
I have tried creating another User Data Function and also signing in again for the UDF activity’s connection, but the issue still persists.
Could you please help advise what might be causing this problem?. Thank you all!
Best Regards.
Solved! Go to Solution.
Hello @Lukas_Ng,
We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.
Thank you.
Issue seems to be resolved now. UDF running successfully on pipelines.
Hello @Lukas_Ng,
We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.
Thank you.
I have tested it again this morning. It's doing well, thank you for your assistance.
Issue seems to be silently resolved!
I am facing the same issue in Production deployment and need immediate help in fixing it . Can the team guide here asap? Raised support case for the same
Hi @Vigneshganesan ,
Which region are you using for prod deployment. Also are your test and prod in the same region or different ones
North Europe
Hello @Lukas_Ng
You can run Fabric User Defined Functions in a Fabric data Pipeline, as documented in this Microsoft doc.
However, User Defined Functions in Microsoft Fabric is available in specific regions. Please check your Workspace and Capacity region is in one of these.
New regions supported for Fabric User Data Functions | Microsoft Fabric Blog | Microsoft Fabric
Hi @Lukas_Ng ,
Fabric Pipelines cannot execute User Data Functions that require Spark or Lakehouse access using an Organizational account.This is a current Fabric platform limitation
The pipeline runs UDFs in a restricted, headless compute context that:
When you run it directly:
Fabric uses your interactive Spark session
Your user identity is authorized
Lakehouse access works
Pipeline execution uses a different security and compute mode
What you should do instead (Fabric-recommended)
This is the correct and supported approach.
Notebook activities:
Run on an authorized Spark cluster
Can write to OneLake / Lakehouse
Accept parameters (file name, path, timestamp)
Are designed for data engineering steps
If this post helps, then please appreciate giving a Kudos or accepting as a Solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
I believe this is 100% GPT generated and false.
Also, as other users have claimed, the UDF not being able to be called from the pipeline has started from 23 Jan. Some engineer messed up something.
Hi, @ssrithar
I noticed this same error began at 01/23/2026, but pipelines calling UDFs that interact with Lakehouses worked previously. Are there some new changes to UDF authorization, like them going from Preview to GA?
Thank you guys here to let me know about this issue
We started seeing this same error at 1/22/2026 around 3:00 AM EST on a pipeline that has been running successfully since the beginning of December. The UDF was used to call a REST API to refresh the metadata for a SQL endpoint, but after testing on a basic "Hello Fabric" UDF the error still exists, so I don't think this is related to spark or lakehouses. We were waiting 24 hours to see if it resolved itself as part of a Fabric update, but as of this morning the issue still exists for us.
| User | Count |
|---|---|
| 18 | |
| 5 | |
| 4 | |
| 2 | |
| 2 |