Issue
It is possible to use the External Database Connector module when deploying a project to a Free App environment. In case the Constants Database_DBPassword, Database_DBSource and Database_DBUsername are not configured correctly locally in Studio Pro, it will not be possible to connect to the external database. There will be an error in the logs:
ERRORExternalDatabaseConnector: dataSource or dataSourceClassName or jdbcUrlThis article will describe how this error can be resolved by setting the constants locally.
Environment
Cause
Usually, the contants Database_DBPassword, Database_DBSource and Database_DBUsername are set in the Configuration Settings, locally in Studio Pro. These are not committed to the Teamserver and do not work for Free App environments.
Solution/Workaround
The constants need to be set locally as the default value in the Constant itself. To set the constants locally, follow these steps:
- In the App Explorer, select the module where the constant is located.
- Double-click on the constant
- Set the Default Value in the properties.
Internal information related
Internal information related
- 232060
- C02SSNWKKH8/p1726739618763769
Additional information
Mendix documentation: Constants
0 Comments