Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Difference between OnTaskFailure and OnStepError
Topic Summary:
Created On: 06/13/2018 11:30 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 06/13/2018 11:30 AM
User is offline View Users Profile Print this message

Author Icon
KrisToledo
Student (5-19 posts)

Posts: 9
Joined: 05/29/2018

Hi,

I was trying to search within the forums and knowledgebase on what is the difference between the two? Tried testing them and both can be triggered on task failures. Is there a more defined purpose on how to use them?

 Category Survey
AutoMate 10 version: 10.7.0
Windows version: Windows 7


-------------------------
Automate 10.7.0.3 | Windows 7 64 BIT
 06/18/2018 04:00 PM
User is offline View Users Profile Print this message

Author Icon
Devin Cannon
HelpSystems

Posts: 398
Joined: 03/17/2016

Hi Kris,

They're largely the same.

The 'OnStepError' function is run after each step failure. The step may be set to continue the task even if there's an error as to not trigger the 'OnTaskFailure'.

The 'OnTaskFailure' function will be run only when the task stops with a failure.

So as a little real-world example, you have a task where a step occasionally errors so you set the 'OnStepError' to write the error to a log file, but then continue the task. If the task fails elsewhere, you want to get an email alert of the failure, so you set the 'OnTaskFailure' to email you.

 Category Survey


-------------------------

Devin Cannon | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 06/21/2018 06:51 AM
User is offline View Users Profile Print this message

Author Icon
flowers
Artisan (200-499)

Posts: 259
Joined: 01/08/2009

It would be nice if there was the option to dump a variable list along with their contents in OnStepError

Rich

 Category Survey
AutoMate 10 version:
Windows version:
 06/25/2018 02:35 PM
User is offline View Users Profile Print this message

Author Icon
Alex Escalante
HelpSystems

Posts: 871
Joined: 02/26/2014

Hello Flowers,

May you please elaborate on your request?

You would like the "OnSTepError" to automatically create a log file with all variables and values associated with that task?

 Category Survey


-------------------------

Alex Escalante | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 06/28/2018 01:15 PM
User is offline View Users Profile Print this message

Author Icon
flowers
Artisan (200-499)

Posts: 259
Joined: 01/08/2009

Alex, I am assuming the OnStepError module is global for the task so it would be nice to get an email of the values of all variables when the error occurred. Maybe there is a way but it is beyond me on how to accomplish that.

Thanks,
Rich

 Category Survey
AutoMate 10 version:
Windows version:
 07/02/2018 01:01 PM
User is offline View Users Profile Print this message

Author Icon
Alex Escalante
HelpSystems

Posts: 871
Joined: 02/26/2014

Hello Rich,

Understood.

I have sent the feature request to our development team and will keep you posted on their response.

 Category Survey


-------------------------

Alex Escalante | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 07/10/2018 02:04 PM
User is offline View Users Profile Print this message

Author Icon
Alex Escalante
HelpSystems

Posts: 871
Joined: 02/26/2014

Hello Rich,

The feature request has been accepted and a feature request number has been issued. The number, for your reference is 24377.

Please review the change logs of upcoming releases to see if this feature has been implemented into that particular release.

Please let us know if we may answer any additional questions or concerns.

 Category Survey


-------------------------

Alex Escalante | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 08/09/2018 10:55 AM
User is offline View Users Profile Print this message

Author Icon
flowers
Artisan (200-499)

Posts: 259
Joined: 01/08/2009

Thanks Alex

 Category Survey
AutoMate 10 version:
Windows version:
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 818 guests browsing this forum, which makes a total of 818 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2019 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog