web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

how the powerapps data source make a connection with business central (on-premises). and how to resolve this powerApps error code. 502

(0) ShareShare
ReportReport
Posted on by 5

{
"error": {
"code": 502,
"source": "india-001.azure-apim.net",
"clientRequestId": "a48c02ef-959b-4ece-9cd7-6bb59ea89970",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.\r\n inner exception: An error occurred while sending the request.\r\n inner exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.\r\n inner exception: The remote certificate is invalid according to the validation procedure.\r\nclientRequestId: a48c02ef-959b-4ece-9cd7-6bb59ea89970",
"error": {
"message": "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.\r\n inner exception: An error occurred while sending the request.\r\n inner exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.\r\n inner exception: The remote certificate is invalid according to the validation procedure."
},
"source": "dynamicssmbonprem-si.azconn-si.p.azurewebsites.net"
}
}
}

Session ID: 37d0e819-b5f3-469f-9686-599745501241

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    The problem seems to be related to the SSL cert. Are you using a self signed cert and what type of authentication method?

    Thanks.

  • Verified answer
    Tabrez Ajaz Profile Picture
    785 on at

    Hi @kanishka,

    Ask your IT Team for Public SSL Certificate, and configure it for Business Central Web Client from IIS Manager and define it in the binding.

    Once Done, make sure to do following changes on Business Central Server Instance:

    * Change your client credential type to NavUserPassword

    * Add Certificate Thumbprint

    * Enable SAOP and oData services

    Do following change in navsettings.json available at location "C\inetpub\wwwroot\BC_Folder":

    * "ClientServicesCredentialType":   "NavUserPassword"

    Enjoy and confirm if this solution works for you!

  • Suggested answer
    KanishkaMohan Profile Picture
    5 on at

    I already tried earlier and worked.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans