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 driver. Please go to the project painter > Database page 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 updated 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 Database page > Basic tab.

  2. Select the database type used in the application from the Provider list and the check box "I have read and agree to the license terms...".

  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.