|Available in: Logi Info|| Source code name: IfDataError||Introduced 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.