DB driver error during the build process

When you deploy the application in the PowerBuilder IDE or using the PBAutoBuild command line tool after upgrading from Version 2021 Build 1288 to Build 1311 or later, the following error appears during the build process:

[Error] You have not confirmed the selection and download of the required database types and drivers. Please go to the Database 
Configuration > DB Drivers for this task

Cause:

Starting from Version 2021 Build 1311, database drivers will be downloaded from NuGet to PowerServer only after you have selected the database type and agreed to the license terms.

If you have not made this configuration in the PowerBuilder IDE, or update the PBAutoBuild build file with this change, the build process will fail.

Solution:

Confirm the selection and download of the required database types and then re-deploy the application. To do that:

  1. Open the PowerServer project painter in the PowerBuilder IDE, select the Web APIs tab, and click the Database Configuration button.

  2. In the Database Configuration window, click the DB Drivers button, and then select the database type used in the application and the check box of "I have read and agree to the license terms...". Click OK.

  3. Deploy the application again using the Build & Deploy PowerServer Project option in the PowerBuilder IDE.

    Or, export the JSON build file again and then re-deploy the application using PBAutoBuild.