Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Error handling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Error handling

L1 Bithead
 
Hi all, with this type of setting (see the img), if in the next task I check $ {lastCompletedTaskEntries} to verify if the previous task is in error, the result is positive even if the second retry task went well. How can I get around this problem?immagine.png
5 REPLIES 5

L5 Sessionator

Hi @c.marlettalivi, that is by design. The ${lastCompletedTaskEntries} returns the ID of the last warroom entry created by the previous playbook task. If you want to check individual task run, I would suggest going the playbook loop approach. Inside the sub-playbook set the task with no retries, your error check task should follow this task, then in your master playbook create the loop with a conditional check. 

 

Refer - https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/playbooks/configure-a-s... for more information.

L1 Bithead

Thank you @jfernandes1 . I would like to be able to send an email if none of the retries ends without errors.

Does the management with 'Error path' also behave in this way?

L1 Bithead

Thank you @jfernandes1 . I would like to be able to send an email if none of the retries ends without errors.

Does the management with 'Error path' also behave in this way?

L5 Sessionator

Hi @c.marlettalivi, The use case you're asking for is not possible with error path. As mentioned before, if you want to test each retry you should do this via the sub-playbook method. 

 

 

L4 Transporter

They also introduced error handling playbooks in version 6.8.  You can add an error path after the task, which will be followed if it errors:

https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-8/cortex-xsoar-admin/playbooks/playbook-task...

  • 2265 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!