Element Details: If+Data+Error
 Back


Available in: Logi Info Source code name: IfDataErrorIntroduced in: v10.0.319

IfDataError helps handle errors while running datalayers. Errors such as a failure find or connect to data sources, missing files, corrupt files, etc. IfDataError can be used to trap and then switch to alternate data sources or processing steps. Without an IfDataError element, the system returns an error page detailing the original error.

Add the alternate datalayer under the IfDataError to handle the error.

When IfDataError captures an error, the system will switch to the child datalayer element of the IfDataError. The alternate data source replaces the original data. After loading the new data and applying any nested data filters, the system will process parent datalayer filters that follow the IfDataError element.

You may include error handling within error handling. The log will contain an entry each time an IfDataError element is processed. The entry will include the error message and any details.

Use the @Function.ErrorDataLayerID~ token to get the ID value of the datalayer that encountered the error.

Element Group:Control



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
ID
UserDefined
The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.



PARENT ELEMENTS

Click element to drill down for more information.

DataLayer.Bookmarks
DataLayer.Cached
DataLayer.CSV
DataLayer.Definition List
DataLayer.Directory
DataLayer.ETL
DataLayer.Excel
DataLayer.Fixed Format File
DataLayer.Google App
DataLayer.Google Spreadsheet
DataLayer.GPX File
DataLayer.JSON
DataLayer.KML File
DataLayer.LDAP
DataLayer.LDAP Authentication
DataLayer.Linked
DataLayer.Mongo Find
DataLayer.Mongo Map Reduce
DataLayer.Mongo Run Command
DataLayer.Plugin
DataLayer.REST
DataLayer.Scheduler
DataLayer.SimpleDB
DataLayer.SP
DataLayer.SQL
DataLayer.Static
DataLayer.Twitter
DataLayer.Web Feed
DataLayer.Web Scraper
DataLayer.Web Service
DataLayer.XML


CHILD ELEMENTS

Click element to drill down for more information.

DataLayer.Bookmarks
DataLayer.Cached
DataLayer.CSV
DataLayer.Definition List
DataLayer.Directory
DataLayer.ETL
DataLayer.Excel
DataLayer.Fixed Format File
DataLayer.Google App
DataLayer.Google Spreadsheet
DataLayer.GPX File
DataLayer.JSON
DataLayer.KML File
DataLayer.LDAP
DataLayer.Linked
DataLayer.Mongo Find
DataLayer.Mongo Map Reduce
DataLayer.Mongo Run Command
DataLayer.Plugin
DataLayer.REST
DataLayer.Scheduler
DataLayer.SP
DataLayer.SQL
DataLayer.Static
DataLayer.Twitter
DataLayer.Web Feed
DataLayer.Web Scraper
DataLayer.Web Service
DataLayer.XML


 Back to top


 Chart Debug