Based on the error message, this is not a SQL authentication issue but an SSL/TLS certificate trust issue between the Mendix 10 runtime (Java 21) and SQL Server.
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find a valid certification path to requested target
This means the SQL Server JDBC driver is attempting to establish an encrypted connection, but the certificate presented by SQL Server is not trusted by the Java truststore being used by the Mendix 10 runtime.
Mendix 10 runs on a newer Java runtime (Java 21) and newer JDBC driver versions, which enforce stricter SSL/TLS certificate validation. As a result, environments that worked in Mendix 9 may start failing if SQL Server is using:
This behavior is consistent with Microsoft SQL Server JDBC encryption requirements when:
encrypt=true
trustServerCertificate=false
The driver must validate the SQL Server certificate against a trusted CA chain.
The preferred solution is to trust the SQL Server certificate in Mendix Runtime.
CACertificates=C:\Certificates\sqlserver.crt
This allows the runtime to validate the SQL Server certificate correctly while maintaining encrypted communication.
If the SQL Server certificate is self-signed and certificate validation is not required, modify the JDBC URL to:
jdbc:sqlserver://<server>;
databaseName=<database>;
encrypt=true;
trustServerCertificate=true;
This keeps encryption enabled but skips certificate chain validation. Use this only in non-production environments.
If your organization's security policy permits disabling database encryption:
encrypt=false
or
DatabaseUseSsl=false
However, this is generally not recommended for production deployments.
For on-premise deployments, the settings can be configured in:
Mendix Service Console → Configuration → Advanced
Relevant settings:
DatabaseJdbcUrl
CACertificates
DatabaseUseSsl
The JDBC URL can be overridden there if additional SQL Server SSL parameters are required.
Before making changes, verify:
There is no major database configuration change required in Mendix 10.24.20 itself. The issue is typically caused by the newer Java/JDBC stack enforcing stricter SSL certificate validation. Importing the SQL Server certificate (or Root CA certificate) into the Mendix runtime trust configuration is the recommended long-term fix, while trustServerCertificate=true can be used as a temporary workaround for development or testing environments.