Script Canvas Troubleshooting

Script Canvas provides a mechanism to detect and report errors. In general, invalid conditions are the cause of errors in Script Canvas.

In C++ Script Canvas provides the following macros for error management:


You can use these macros during a graph’s execution. When triggered, they stop the execution of nodes that have an error.

You can detect errors that occur in a graph at run time and provide an error handler to respond to the errors. This helps users to gracefully handle graphs that encounter an invalid condition.

Runtime execution errors are reported to the Event Handler node. You can use this node to perform custom logging or take appropriate action when an error occurs.

You can also raise and handle errors within a graph’s execution. The following simple example shows how you could use Error and Error Handler nodes to provide notification of an error in data validation. This helps to rectify the solution to ensure that the graph remains stable.

Example that notifies users of errors in data validation

Copyright © 2022 Open 3D Engine Contributors

Documentation Distributed under CC BY 4.0.
For our trademark, privacy and antitrust policies, code of conduct, and terms of use, please click the applicable link below or see

The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Policy page.