<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Helper Functions in User Data Functions in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4714213#M9784</link>
    <description>&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 13:43:00 GMT</pubDate>
    <dc:creator>cgroleau</dc:creator>
    <dc:date>2025-05-30T13:43:00Z</dc:date>
    <item>
      <title>Using Helper Functions in User Data Functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4713001#M9759</link>
      <description>&lt;P&gt;According to the Fabric documentation, in data functions, a published function with the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@udf.function()&lt;/LI-CODE&gt;&lt;P&gt;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.&lt;BR /&gt;&lt;BR /&gt;Sample code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import fabric.functions as fn

udf = fn.UserDataFunctions()

def helper_function() -&amp;gt; str:
    return "Text from helper function"

@udf.function()
def call_another_function() -&amp;gt; str:
    return helper_function()&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;Error:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;{
  "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."
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 20:54:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4713001#M9759</guid>
      <dc:creator>cgroleau</dc:creator>
      <dc:date>2025-05-29T20:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Helper Functions in User Data Functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4714114#M9782</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1278497"&gt;@cgroleau&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we are looking into it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Prashanth Are&lt;/P&gt;
&lt;P&gt;MS Fabric community support&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 12:27:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4714114#M9782</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-05-30T12:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Helper Functions in User Data Functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4714213#M9784</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 13:43:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4714213#M9784</guid>
      <dc:creator>cgroleau</dc:creator>
      <dc:date>2025-05-30T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Helper Functions in User Data Functions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4715903#M9801</link>
      <description>&lt;P data-start="80" data-end="241"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1278497"&gt;@cgroleau&lt;/a&gt;,&lt;/P&gt;
&lt;P data-start="80" data-end="241"&gt;Thanks for actively participating in MS Fabric community support.&lt;/P&gt;
&lt;P data-start="80" data-end="241"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="80" data-end="241"&gt;Great to hear you found the root cause of the issue! Thank you for sharing the details.&lt;/P&gt;
&lt;P data-start="243" data-end="422"&gt;If this resolves your issue, please consider marking your post as&amp;nbsp;&lt;STRONG&gt;accept as solution.&lt;/STRONG&gt; Doing so helps other community members who run into similar problems find the solution more easily.&lt;/P&gt;
&lt;P data-start="243" data-end="422"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="243" data-end="422"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="243" data-end="422"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="243" data-end="422"&gt;Thanks,&lt;/P&gt;
&lt;P data-start="243" data-end="422"&gt;Prashanth Are&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 07:32:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Using-Helper-Functions-in-User-Data-Functions/m-p/4715903#M9801</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-02T07:32:39Z</dc:date>
    </item>
  </channel>
</rss>

