<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/discussions/f/integrations/39763/sql-server-connected-system-oauth2-0-test-failure</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151806?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 02:58:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2cfe61df-3b16-45e8-9b7d-d591797f0978</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151804?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 18:42:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a6e104a-0f51-43d2-a13e-32b6f55c0d31</guid><dc:creator>abhishekd257618</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;There was an IP whitelist issue on the firewall and we got it fixed to ensure the VPN tunnel connectivity.&amp;nbsp;&lt;br /&gt;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.&amp;nbsp;&lt;br /&gt;The logs shows the below error:&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;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&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1759171336986v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151746?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 19:28:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7d3da97-65ba-4a16-bb28-b069b1e7a99c</guid><dc:creator>abhishekd257618</dc:creator><description>&lt;p&gt;hi Sure.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/0284.image-_2800_3_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151741?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 17:50:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99086011-0648-453e-8be1-0ea1ecd3da2b</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Can you replicate this configuration for example via postman and check if it works?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151739?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 17:46:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2763c946-a4ed-4fa6-b652-57524214ce56</guid><dc:creator>abhishekd257618</dc:creator><description>&lt;p&gt;I already tried to find the error in logs but could not obtain anything specific.&lt;/p&gt;
&lt;p&gt;2025-09-25 01:36:31,065 [Appian Timer - 1] WARN com.appiancorp.common.ObjectSynchronizer - 1 services were missing users.&lt;br /&gt;2025-09-25 01:36:57,229 [pool-109-thread-1] INFO com.appiancorp.oauth.inbound.authserver.tokens.TokenFamilyMaintenanceRunnable - Starting OAuth Token Family table maintenance...&lt;br /&gt;2025-09-25 01:36:57,232 [pool-109-thread-1] INFO com.appiancorp.oauth.inbound.authserver.tokens.TokenFamilyMaintenanceRunnable - Finished OAuth Token Family table maintenance.&lt;br /&gt;2025-09-25 01:40:17,842 [Appian Timer - 3] ERROR com.appiancorp.common.monitoring.AbstractLogScheduler - Error logging for class com.appiancorp.object.versions.monitoring.DesignObjectVersionMetricsLogScheduler&lt;br /&gt;com.appiancorp.suiteapi.common.exceptions.AppianException: Invalid Type: {www.appian.com/.../2009}TranslationString (APNX-1-4047-000)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151734?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 09:59:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a066efa6-b833-4f2d-aba9-b9001f28c018</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Check logs please and share the error...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151728?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 18:42:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c59b25a5-e89f-489d-a4d6-2b78b4ed7e5b</guid><dc:creator>Jesse Knight</dc:creator><description>&lt;p&gt;There should be a more concise error in &lt;code&gt;System Logs &amp;gt;&amp;nbsp;tomcat-stdOut.log&lt;/code&gt;. Could you post that exception here? Without a more concise error, we&amp;#39;re guessing about many variables related to your Appian configuration and where your database lives.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;IF&lt;/strong&gt; &lt;/em&gt;your database is in Azure Cloud, also check these:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;On a different project / platform, &lt;code&gt;AzureTenant&lt;/code&gt; JDBC property needed to be added to the JDBC connection string for a Teams integration that also used ServicePrincipal. I&amp;#39;m not sure if that applies to your situation, but it&amp;#39;s pretty easy to test.&lt;/li&gt;
&lt;li&gt;Appian might have additional VPN requirements depending on your environment&amp;#39;s configuration:&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/25.3/Microsoft_Azure_DB_Integration_Appian_Cloud.html"&gt;docs.appian.com/.../Microsoft_Azure_DB_Integration_Appian_Cloud.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SQL Server Connected system OAuth2.0 Test failure</title><link>https://community.appian.com/thread/151727?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 18:09:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7704d38d-3de1-421a-8f29-0a51abdf5952</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;My guess,&amp;nbsp;&lt;span&gt;The issue is the SQL Server database user for the service principal (Client Id)is not created or lacks permissions.&lt;br /&gt;&lt;br /&gt;Try below links for reference&lt;br /&gt;&lt;a href="https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql"&gt;https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresql&lt;br /&gt;https://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=sql-server-ver17&lt;br /&gt;https://docs.appian.com/suite/help/25.3/setting_up_an_oauth_connected_system.html&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/25.3/Configuring_Relational_Databases.html#sql-server"&gt;https://docs.appian.com/suite/help/25.3/Configuring_Relational_Databases.html#sql-server&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>