Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey everybody,
I am migrating some pipelines from data factory to fabric and using a copy activity to fetch data from an api and paste it into datalake
but i get this error even after using an on-premise gateway and my privacy setting for the connection is None
'''
The connection to the REST service failed. Endpoint='xxx', Reason='TrustFailure' The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure.
'''
my connection credentials are correct
Please guide
Thanks for help
Solved! Go to Solution.
Hi @KNULLByTE,
The error occurs because Microsoft Fabric enforces strict SSL/TLS certificate validation when connecting to HTTPS endpoints. If the REST API you are calling uses an invalid certificate—such as a self-signed, expired, or domain-mismatched certificate—Fabric will reject the connection with a "TrustFailure" error. This validation happens even if you're using an on-premises data gateway or have set the privacy level to None, as these settings do not bypass SSL security checks.
To resolve this, you need to ensure the API uses a valid SSL certificate issued by a trusted certificate authority. If updating the certificate is not possible, a common workaround is to set up a reverse proxy (e.g., NGINX or Azure API Management) with a trusted SSL certificate that forwards requests to the original API. This allows Fabric to successfully establish a secure connection through the proxy, while the proxy handles communication with the original API.
let me know if your still blocked on this?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
Hey,
@v-prasare
Thanks for your help.
I am working on implementing your solutions.
Will open this thread again, if needed
@KNULLByTE, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query
Hi @KNULLByTE,
The error occurs because Microsoft Fabric enforces strict SSL/TLS certificate validation when connecting to HTTPS endpoints. If the REST API you are calling uses an invalid certificate—such as a self-signed, expired, or domain-mismatched certificate—Fabric will reject the connection with a "TrustFailure" error. This validation happens even if you're using an on-premises data gateway or have set the privacy level to None, as these settings do not bypass SSL security checks.
To resolve this, you need to ensure the API uses a valid SSL certificate issued by a trusted certificate authority. If updating the certificate is not possible, a common workaround is to set up a reverse proxy (e.g., NGINX or Azure API Management) with a trusted SSL certificate that forwards requests to the original API. This allows Fabric to successfully establish a secure connection through the proxy, while the proxy handles communication with the original API.
let me know if your still blocked on this?
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query