Failed to load database driver when building/deploying PowerServer project

When building & deploying a PowerServer project that was upgraded from an earlier version (for example, from PowerBuilder 2022 Beta to PowerBuilder 2022 GA), you may get the following error:

The database driver xxxx is required for the database configuration. Please specify where to find the driver, xxxx.
Failed to create the .NET Database model.


Cause:

This error is caused by changes of the database driver loading folder (due to a product change or a driver version upgrade).

Solution:

You can go to the PowerServer project settings > Database page, the IDE will automatically prompt you with a Database Configuration dialog box and you can install the driver again (as shown in the above figure).

After that, you can try and deploy the project again.