SC13 - Error Handling with AE-Script

Mistakes happen – the question is how your scripts handle them! Learn about Automic Scripting Error Handling and build robust automations that respond in a controlled manner even when problems arise.

Error handling in Automic – how to tame FAULT_OTHER and make your scripts bulletproof! 💥

Errors in scripts are inevitable – but uncontrolled crashes don't have to be! In this course, you will learn everything about professional error handling in Automic. You will find out what lies behind the dreaded FAULT_OTHER status and why it can cause entire workflows to crash. With the right techniques, you can transform error-prone scripts into robust automations that respond in a controlled manner even when problems arise! What you will learn in this course:
  • How FAULT_OTHER occurs and why it can jeopardise entire workflow executions
  • The critical difference between ‘generate at activation time’ and ‘generate at runtime’
  • Which script functions can return codes instead of aborting immediately
  • How to control error behaviour with :ON_ERROR
  • Detailed error evaluation with SYS_LAST_ERR_NR, SYS_LAST_ERR_INS, and GET_MSG_TXT
  • Controlled termination with EXIT and STOP
You will understand why some functions, such as CREATE_OBJECT, continue to run when errors occur, while others abort immediately. We will show you how to evaluate return codes correctly and write meaningful error messages in your report. Particularly important: you will learn when you encounter ENDED_NOT_OK, ENDED_EMPTY and FAULT_OTHER – and when which status is the right one for your automation! Practical examples guide you through typical error scenarios: from handling missing objects to securing critical operations to elegant error recovery. You will also learn why neither EXIT nor STOP work in post-processing and which alternative you need to use there. Practical exercises will consolidate your knowledge, and the final test with certificate will confirm your error handling skills! This course is ideal for anyone who wants to stop fearing FAULT_OTHER and secure their scripts so that they respond in a controlled and traceable manner even when errors occur. Put an end to cryptic abortions and build automations that do exactly what they are supposed to do, even in the event of an error!

Learn Automic with PEM!

Would you like to learn more about Automic without having to travel across the country for workshops? At PEM, you decide when and how you want to continue your education! In interactive courses, tutorials and videos, you will learn everything you need to know about Automic – and more! And we are always there for you via comment function or email.

Does that sound interesting? Then get started today with PEM, Automic Training 2.0 and year-round Automic support!

More about PEM
Start now

FAQ about Automic Training on PEM

PEM is the most innovative and fastest growing Automic learning platform. It offers PEM members a comprehensive range of online training courses that can be accessed 24/7 and from anywhere. The platform includes dozens of videos and interactive courses and is aimed at beginners and professionals alike.