AMError.TaskName

Related Topics

Syntax

%AMError.TaskName%

Type

String

Description

Returns the name of the task that generated the error.

Example

NOTE:
  • The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
  • Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Copy
<AMVARIABLE NAME="theError"></AMVARIABLE>
<AMRUN AM_SETVAR="theError;%AMError.ErrorDesc%" AM_ONERROR="CONTINUE" FILE="BogusFile.exe" />
<AMSHOWDIALOG WINDOWTITLE="AMError return value">AMError.ErrorDesc return value:%AMError.ErrorDesc% </AMSHOWDIALOG>