Skip to main content
Skip table of contents

SetVarListErrorAction: Gather action errors in one list

SetVarListErrorAction triggers the construction of lists of errors from failed actions.

To access the individual error content, loop the list and use {%ErrorAction%} after ExecuteListAction.

Tag Attributes

AttributesAttribute ValuesValue Description
ListNameN/AName of list containing the errors Required
ActionN/AName of actions by which to filter errors. Empty or not supplied, all actions are scanned and their errors added to the list Optional


Example Script

XML
<ytriaAutomation>
	<OnError continue="true"/>
	<LoadSession name="DoesNotExist@LetsTriggerAnError"/>
	<ShowUsers/>
	<SetVarListErrorAction ListName="ERRORS"/>
	<Loop list="ERRORS" OnError="Next">
		<ExecuteListAction/> <!-- SetVar ErrorAction here: var name is not free -->
		<Echo value="Sadness: {%ErrorAction%}"/>
	</Loop>
</ytriaAutomation>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.