I have a BPMN maestro flow where I am running using debug and while running in debug mode, the flow error out in the 2nd agent (different than 1st agent) with the below error -
Error: Incident at element Activity_kKaf3G: Failure in the Orchestrator Job
But this 2nd agent running without any error while I debug it individually.
Can you try recreating the issue with an new project? if yes, it’s a configuration issue somewhere, else it could be the Maestro project error and better to use new project.
@abhilashmohanty86 It sounds like the 2nd agent itself is probably fine, since it works when you debug it separately. So the issue may be more about how Maestro is invoking that agent from the BPMN flow rather than the agent logic alone.
Can you check below:
Input mapping between Agent 1 → Agent 2
Sometimes the 2nd agent runs fine alone because you pass test data manually, but fails in the Maestro flow because one required input is null, empty, or in a different format
Thanks you all for your inputs.
Though in some point of time these input will definitely help me.
I found the issue to be on the structured output data validation that the agent was prompted to do. It was trying to output string but the agent was returning NULL based on the input supplied which was correct. So I made the structured output as optional in the prompt. It worked fine after that.