Hi Team, Earlier in Legacy, I was able to invoke the same workflow (XAML) from within itself as part of the process logic. But after converting to Windows, UiPath throws an invocation cycle error when I try to publish the project.
Has anyone else faced this issue? Any suggestions to fix
Yes, faced this issue in one of the requirements.
I believe disabling the Workflow Analyzer rule that blocks cyclic invocation should work. Give this a try.
This rule is enabled by default in Windows projects and set to Error, which stops the publish.
Turning it off removes the block entirely.
Try using flowchart instead of sequence.
My workaround is to use flowchart in which I link to the first activity when I want to call recursive (so instead of wraping everything in sequence and calling the same workflow in it, I put the workflow into flowchart and in this case it works…)
Also if possible try to upgrade the studio.
@neethu.krishnan6
windows framework is strict and it does not allow recursion…you have to change it to not call it recursively
If you need to solve then upgrade studio to 23.10+ from that studio version it is supported again
cheers
1 Like
Anil_G
(Anil Gorthi)
November 24, 2025, 4:26am
4
@SuperWomen
What is your studio version?
it should be 23.10+
Why an invocation-related exception is obtained while publishing the workflow from Studio?
Issue Description
While publishing the automation workflow from Studio to Orchestrator, an exception that says "Unexpected error has occurred during the library compilation process: The following workflows are in at least one invocation cycle: __________" is received.
Root Cause
This error usually appears when one of the mentioned workflows is invoked using the Invoke Workflow File and somewhere be…
cheers
Hi @SuperWomen
Pls check below link , might be helpful:
My workaround is to use flowchart in which I link to the first activity when I want to call recursive (so instead of wraping everything in sequence and calling the same workflow in it, I put the workflow into flowchart and in this case it works…)
Happy Automation
system
(system)
Closed
November 27, 2025, 8:25am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.