Error Fix For "The Following Workflows Are In A Least One Invocation Cycle" Thrown While Publishing

Why an invocation-related exception is obtained while publishing the workflow from Studio?

Error summary and root cause:

Error Description: Sometimes, 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 a least one invocation cycle: __________" is received.


Root Cause: This error usually appears when one of the mentioned workflows are invoked using "Invoke Workflow File" and somewhere between those Invokes one of them is called again, creating a (possible) loop.

Example:

In the example above, observe that there are 3 workflows involved ( listed below). The following workflows are in a least one invocation cycle,

  • * 'C:\Users\jgoto001\Documents\UiPath\Azure DevOps\AF Binder Finalization\GetReportReleaseDate.xaml'
  • * 'C:\Users\jgoto001\Documents\UiPath\Azure DevOps\AF Binder Finalization\Main.xaml'
  • * 'C:\Users\jgoto001\Documents\UiPath\Azure DevOps\AF Binder Finalization\AdvanceFlow\FinalizeFlow.xaml'

Resolution: Check the associated activities in the automation, and make sure the 3 workflow files are not calling each other,

  • * 'C:\Users\jgoto001\Documents\UiPath\Azure DevOps\AF Binder Finalization\GetReportReleaseDate.xaml'
  • * 'C:\Users\jgoto001\Documents\UiPath\Azure DevOps\AF Binder Finalization\Main.xaml'
  • * 'C:\Users\jgoto001\Documents\UiPath\Azure DevOps\AF Binder Finalization\AdvanceFlow\FinalizeFlow.xa