Skip to main content
You may receive errors from custom dataabaseses. You can also return errors from your custom database connection action scripts for troubleshooting.

Custom database error types

Database connections may return the following errors:

Return errors

To return an error, call the callback() function and pass error as the first parameter:
For example:

Return errors when using Lock

If you use Lock, you can customize the error messages by adding them to the dictionary.

Troubleshoot errors

Test the script using the Try button. If you do not get the expected result or you receive an error, use Actions Real-time Logs, use console.log() statements in your script, and try the connection again. The output of console.log() prints to the Actions Real-time Logs window. You may experience errors using action scripts to import, create, or delete users. Use console.logs to verify the error is a result of using action scripts. To learn more, read Custom Database Action Script Templates.