subflow not allowing me to publish

MohammedA601527
Tera Contributor

Hi All,

 

I have a requirement to create a flow for the send an email when SLA breaches to 80%, 100%,120% and 140%.

 

We created a very long flow it is about 300 line flow because of this facing performance issues in the system.

 

so decided to use subflows in the sub flow while creating for 80% SLA breach we are using SLA percentage timer and trigger condition is on main FLOW so while publishing the subflow it is throwing an error like:  "SLA Percentage Timer can only be used when Trigger is SLA Task"

how to over come this please provide your inputs/suggestions thanknyou!

 

Looking forward for your response

 

Regards,

AK

11 REPLIES 11

Tushar
Kilo Sage
Kilo Sage

Hi @MohammedA601527 

I think this restriction exists because the SLA Percentage Timer relies on the context of an SLA Task record to calculate the breach percentage (e.g., 80%, 100%, 120%, 140%) based on the SLA's duration and progress and since your subflow doesn't have an SLA Task trigger, the system throws this error during validation.

 

Replace the four SLA Percentage Timer actions with a single Script Action that monitors the task_sla.percentage_complete field and triggers notifications at the desired thresholds.

 

Create an Event (sla.breach.notification) and a Notification triggered by the event to send the email.

 

Thanks,

Tushar

Ankur Bawiskar
Tera Patron
Tera Patron

@MohammedA601527 

what error you are getting when you are trying to publish?

share screenshots.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

 

Hi Screenshot is below

MohammedA601527_0-1751379492592.png

 

@MohammedA601527 
This error indicates a problem with the trigger, the trigger of your flow should be on the task_sla but most likely it is not... please review this and let me know what table is in your trigger

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */