Forum Discussion

alessanzo's avatar
alessanzo
New Member
27 days ago

Scheduling a User Data Functions item directly fails every time with "FunctionName is null or empty"

Hi all,

I'm running into an issue with the native Schedule option on a User Data Functions item (not the Data Pipeline Functions activity, the Schedule button on the UDF item itself). Every single scheduled run fails with:

[{"errorCode":"WorkloadException","subErrorCode":"WorkloadException","message":"Invalid Argument: FunctionName. FunctionName is null or empty. Please provide a valid value"}]

At first I thought this was because I had more than one function in the item and the scheduler didn't know which one to trigger, but I trimmed the item down to a single function and it still fails the exact same way. So it doesn't seem to be a "multiple functions" thing.

What I did:

  1. Created a UDF item with one function, published it, tested it manually - works fine, returns the expected output.
  2. Set up a Schedule on the item and let it run for a while.
  3. Checked Monitor - every run failed with the error above.

In the Monitor run details, both "Function name" and "Invocation ID" show up blank (--), so it really looks like the scheduled trigger just isn't passing a function name at all when it kicks off the run.

Things I already tried:

  • Deleted and recreated the schedule
  • Reduced the udf to a single function
  • Manual run of the function: works every time
  • Calling the same function from a Data Pipeline Functions activity (where you explicitly pick the function in the activity settings) and scheduling the pipeline instead: works fine, no problems at all

So the function itself is clearly not the problem, it's specifically the item-level Schedule that seems broken - it's just not sending FunctionName in the invocation request the way the Pipeline activity does.

Anyone else seen this, or know of a fix/workaround? Happy to share invocation IDs or more logs if it helps.

6 Replies

  • v-sathmakuri's avatar
    v-sathmakuri
    Community Support

    Hi alessanzo​ ,

    Could you check the suggestion provided above  and let us know if you have any additional queries?

    Thanks!!

  • Kagiyama_yutaka's avatar
    Kagiyama_yutaka
    Responsive Resident

    UDF schedule fails when the scheduler does not send a FunctionName. The pipeline path works because it always includes the function name. The UDF scheduler also needs the same auth method and UDF binding that the pipeline uses. mismatch makes the scheduled run fail even when FunctionName is present.

  • ShivekMaharaj's avatar
    ShivekMaharaj
    Impactful Individual

    Hi alessanzo​,

    I think your testing has already narrowed this down quite well. I would also be looking at the item-level scheduler rather than the function itself here.

    Microsoft now documents native scheduling for User Data Functions, and the expected flow is that a published function is invoked by the Fabric Job Scheduler without needing a pipeline.

    What stands out in your case is this part:

    FunctionName is null or empty

    combined with the Monitor entry showing neither a function name nor an invocation ID.

    A normal UDF invocation has a specific published function as its target, and Microsoft documents invokable functions as those exposed through @udf.function(). If the same function runs manually and also works from a Functions activity in a pipeline, I would not expect the function implementation itself to be the cause.

    My suspicion would therefore be that the schedule is being created at item level, but the scheduler is not persisting/resolving the actual published function name when the job is submitted.

    One thing I would try is:

    1. Publish the UDF again.
    2. Remove all existing schedules.
    3. Close/reopen the UDF item and create a completely new schedule after the publish has completed.
    4. Check whether even a manual Run now from that newly created schedule produces the same blank FunctionName.


    If it still returns the same error, I would treat this as a likely scheduler-side issue and raise it with Microsoft Support. The blank function name plus missing invocation ID would be useful evidence to include, together with the workspace/item IDs and timestamp of the failed job.

    As a workaround, your pipeline approach is valid for now. Microsoft also supports calling a UDF explicitly through the User Data Functions activity in a pipeline, where the workspace, UDF item and exact function are selected directly.

    I’d be interested to know whether recreating the schedule after a fresh publish changes the behaviour, because that would help distinguish stale schedule metadata from a broader scheduler issue.

    AI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.

    • alessanzo's avatar
      alessanzo
      New Member

      Hi ShivekMaharaj​, I've just retried the 4 steps you asked, but the error is the same. Even when manually triggering the schedule. 

      workspace: e2d07ad7-c21c-4aef-8909-f7bef1a3b4f1
      udf id: e0a894cc-ba11-43f5-96d8-86268f05bb16
      udf name: CheckUpdatesRunPipeline
      schedule id: f9b23359-cee4-4419-9ff0-76ee7d1b3eb9

      One of the errors from the Monitor tab run list:

      {

      "Error": {

      "Message": "Something went wrong on our end. Wait a few minutes and try again. If the problem continues, contact your admin.",

      "Code": "Unknown"

      },

      "General": {

      "Function name": "--",

      "Invocation ID": "--",

      "Status": "Failed",

      "Run kind": "Unknown",

      "Owner": "Alessandro Sanzo",

      "Start time": "8/25/2026, 10:41:02 AM",

      "End time": "8/25/2026, 10:41:02 AM",

      "Errors": "[{\"errorCode\":\"WorkloadException\",\"subErrorCode\":\"WorkloadException\",\"message\":\"Invalid Argument: FunctionName. FunctionName is null or empty. Please provide a valid value\"}]"

      }

      }

      • v-sathmakuri's avatar
        v-sathmakuri
        Community Support

        Hi alessanzo​ ,

        Thanks for the detailed testing. Based on the results, this looks like a Fabric UDF item-level scheduling issue, not a problem with the function itself.

        The key indicators are that the function works manually and through the Pipeline Functions activity, while the native schedule shows Function name = -- and fails with Function Name is null or empty.

        I would suggest using the Pipeline Functions activity as the workaround for now, explicitly selecting the function and scheduling the pipeline.

        I’d also suggest you to report this with Microsoft support team .

        Thanks!!