Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

SQL Server Connected system OAuth2.0 Test failure

Certified Senior Developer

Hi, 

While trying to connect to SQL Server connected system using OAuth 2.0, the test connection is failing. 
i am trying to connect via service principal. The token generation is successful (tested separately) but in the connected system for SQL Server, it is not working at all. 
Please advise,

Refer Attached screenshots

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to Shubham Aware

    Hi,
    There was an IP whitelist issue on the firewall and we got it fixed to ensure the VPN tunnel connectivity. 
    however, a new error is being faced saying invalid credentials. Internally, we are able to use the same service principal successfully. not sure what could be done next. 
    The logs shows the below error: 

    2025-09-29 18:44:13,781 [ConnectionTimeoutBasicDataSource-0] INFO  com.appiancorp.connectedsystems.http.oauth.HttpOAuthTokenRetriever - Error while retrieving token: unauthorized attempting to pass Authentication in body
    2025-09-29 18:44:13,950 [ConnectionTimeoutBasicDataSource-0] INFO  com.appiancorp.connectedsystems.http.oauth.HttpOAuthTokenRetriever - Error while retrieving token using auth in body: unauthorized


  • 0
    Certified Lead Developer
    in reply to abhishekd257618

    Client Id, client secret, or token endpoint is incorrect or the OAuth credentials are not sent as parameters in the request body exactly as expected.