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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
cgroleau
New Member

Using Helper Functions in User Data Functions

According to the Fabric documentation, in data functions, a published function with the 

@udf.function()

decorator, should be able to call a function that does not have the decorator as a helper function. In practice, I have not been able to get this to work in any shape or form and I get the same error.

Sample code:

import fabric.functions as fn

udf = fn.UserDataFunctions()

def helper_function() -> str:
    return "Text from helper function"

@udf.function()
def call_another_function() -> str:
    return helper_function()

Error:
{
  "functionName": "call_another_function",
  "invocationId": "00000000-0000-0000-0000-000000000000",
  "status": "Failed",
  "errors": [
    {
      "errorCode": "WorkloadException",
      "subErrorCode": "NotFound",
      "message": "User data function: 'call_another_function' invocation failed."
    }
  ]
}

 

1 ACCEPTED SOLUTION
cgroleau
New Member

Found the issue, and it was my error. In my other testing I had declared another function and made an error in the decorator. I forgot to add the open and close brackets on `udf.function`. This had the odd behavior of still allowing all functions to publish, but none of them could be found when trying to run them.

View solution in original post

3 REPLIES 3
cgroleau
New Member

Found the issue, and it was my error. In my other testing I had declared another function and made an error in the decorator. I forgot to add the open and close brackets on `udf.function`. This had the odd behavior of still allowing all functions to publish, but none of them could be found when trying to run them.

Hi @cgroleau,

Thanks for actively participating in MS Fabric community support.

 

Great to hear you found the root cause of the issue! Thank you for sharing the details.

If this resolves your issue, please consider marking your post as accept as solution. Doing so helps other community members who run into similar problems find the solution more easily.

 

 

 

Thanks,

Prashanth Are

v-prasare
Community Support
Community Support

Hi @cgroleau,

 

we are looking into it

 

 

Thanks,

Prashanth Are

MS Fabric community support

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.