VoiceGuide IVR Software Main Page
Jump to content

Branching On Error (in Database Query module)

Recommended Posts

The release notes for v5.2.3b indicates that the Database Query module now supports branching on error paths. Would you be kind enough to elaborate on this?

 

Thanks,

 

Jack

Share this post


Link to post

You can specify paths which will be taken when specific errors occur when the connection to the database is being opened or the SQL command is being executed.

 

The database driver returns an error number and a description of the error.

Either can be used as the 'Path Trigger'.

 

Eg. when using DAO driver with an Access database error 3031 usually indicates that the supplied database password was incorrect. Error 3061 indicates that SQL statement had too few parameters. The path you would use would be like this:

 

on {3031} goto [Database has different password now]

 

Any errors will show up in the log file, so if you are encountering database errors just look in the MMDDvgm.txt log and you will be able to see there the error number and description and you will be able to then set up paths to intercept any future occurrences of similar errors in VG Script.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×