Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Auto remediation task from subflow raises with state Closed Complete or WIP

amit_bt
Tera Contributor

Hello Experts,
We have created a subflow which create an auto remediation task on em_remediation_task table.
What we observed is, tasks are getting created with state Closed Complete or Work in Progress. Ideally task should follow the stage and must raise as OPEN first. We even added state (OPEN) condition in subflow but no luck.

This happens with 50% of task created in a day, Any idea why this is happening?

Appreciate your response in advance.

Regards

Amit

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

If you look at the History of these tasks (if this is audited) are they truly created in the incorrect State, or updated after they are created? Is there a flow, legacy workflow, or any Business Rules running on the em_remediation_task table, or the table it's extended from that is affecting only these records because of certain data elements?  If you turn on full reporting in Flow Designer and use the Test button on the flow or subflow for a record that had previously created a task in the wrong state is it repeatable - this record will always produce this task?  Does the flow logging indicate the record was created with the correct state?

amit_bt
Tera Contributor

Hi @Brad Bowman  , Thanks for reply. I validated no business rule or any other flow which updates. we are creating record using subflow from alert management rule and we added not State=OPEN which creation. even though no luck.