Hi,
unless I have somehow fundamentally misconfigured my environment, this is the most critical regression I have witnessed in years. This update has effectively bricked my entire Coded Workflow implementations.
Everything worked perfectly two weeks ago. After updating UiPath Studio twice (currently on version 2026.0.182 LTS), the feature is now unusable.
Here is an example of completely valid, trivial C# code:
using System;
using System.Threading.Tasks;
using UiPath.CodedWorkflows;
namespace Testing
{
public class Test : CodedWorkflow
{
[Workflow]
public async Task Execute()
{
await Task.Delay(1000);
Console.WriteLine("Test");
}
}
}
Issue 1: The Code Generator produces broken C#
For the code above, I am getting 8 Compilation Errors. Why? Because your source code generator is producing syntactically invalid wrapper code in the .local folder. How did this pass QA?
After looking into the generated code, I found the following:
- Missing Generic Type Argument (CS1031): The generator creates properties like
public OutArgument<> Outputwithout specifying a type inside the angle brackets. - Invalid Cast Syntax (
CS1525): The generator producesOutput.Set(endContext, ()result["Output"]);with empty parentheses, resulting in an invalid cast expression. - Invalid Void Assignment (
CS0029): The generatedExecuteAsyncmethod attempts to assign the result of aTask(void) method to a variable (var result = await codedWorkflow.Execute()), which is illegal in C#.
Issue 2: The Runtime crashes on await I was forced to “fix” your generator’s mess by changing my method signature from Task to Task<string> just to get it to compile. But it gets worse. Even if I bypass the compiler errors, the runtime execution engine is broken.
Running this code:
[Workflow]
public async Task<string> Execute()
{
await Task.Delay(1000); // CRASH
return string.Empty;
}
Results in a NullReferenceException immediately after the await.
No image of the errors because this is my first (and last) post.
This indicates that the execution engine is losing the synchronization context during async operations, causing the internal EndExecute handler to crash upon return.
Summary:
- I cannot compile standard
voidworkflows because the generator is broken. - I cannot run
asyncworkflows because the runtime crashes onawait.
