<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time in Community Chat</title>
    <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10976#M1070</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Access tokens&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;are valid for 3600 seconds (1 hour).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;After that, the token expires and cannot be used anymore.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2025 19:02:12 GMT</pubDate>
    <dc:creator>Bhagya_pola</dc:creator>
    <dc:date>2025-09-24T19:02:12Z</dc:date>
    <item>
      <title>Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10959#M1056</link>
      <description>&lt;P&gt;Hey there, I'm struggling to chase down the root cause of an issue here that just popped up a couple weeks ago and is causing everybody a headache.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have Workato in between an ECM tool and an ERP tool. 97% of the time the calls are returned properly, 200 is logged, and everything looks good.&lt;/P&gt;&lt;P&gt;A little under 3% of the time though we're getting 401 Unauthorized back. This is logged in Workato in the logs under API Management. Every 401 Unauthorized log is reporting 0ms total response time, and the client column is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked in the ERP logs, and I don't see any requests with the timestamps of the 401 Unauthorized returns, only the successful 200 responses are in there. I checked in Entra to see if there was any issue in there, but I only see the account being logged into ever 24 hours by Workato which is showing successful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure where the issue is - so I figured I'd post here to see if anybody had any ideas on where to look.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 13:47:43 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10959#M1056</guid>
      <dc:creator>CallMeUp</dc:creator>
      <dc:date>2025-09-24T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10961#M1057</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12300"&gt;@CallMeUp&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Just checking, are you using one client or multiple clients for these endpoints?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 17:03:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10961#M1057</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-09-24T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10963#M1058</link>
      <description>&lt;P&gt;There's only the one client. Multiple endpoints for different transactions, but all through the one client. The sporadic 401 responses seem to be distributed across all of them at approximately the same rate proportional to the number of calls being made.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 17:26:34 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10963#M1058</guid>
      <dc:creator>CallMeUp</dc:creator>
      <dc:date>2025-09-24T17:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10965#M1059</link>
      <description>&lt;P&gt;Then I guess there might be an issue with the token refresh timing. The 3% you mentioned could be hitting the expired token before the refresh completes.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:02:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10965#M1059</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-09-24T18:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10966#M1060</link>
      <description>&lt;P&gt;The strange thing is that it'll be in the middle of other successful calls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example, it may be fine at 12:30, 12:31, and 12:32 then get 401 at 12:33 and be fine again at 12:34. Do you think that could be what you're describing?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:16:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10966#M1060</guid>
      <dc:creator>CallMeUp</dc:creator>
      <dc:date>2025-09-24T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10968#M1062</link>
      <description>&lt;P&gt;Exactly, that is what I meant. Check your token validity and refresh timing, there might be a small gap causing those random 401.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:26:00 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10968#M1062</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-09-24T18:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10969#M1063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12300"&gt;@CallMeUp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I assume you are working on an integration from Microsoft Entra to Salesforce via Workato. Could you confirm how you have connected Microsoft Entra? Are you using a direct application connection or APIs?&lt;/P&gt;&lt;P&gt;If you connected to Microsoft Entra using &lt;STRONG&gt;client_id, client_secret, and tenant_id&lt;/STRONG&gt;, then Workato automatically generates an access token by default. However, if Workato fails to reach Microsoft Entra due to a server or connectivity issue, it may attempt to use an expired token, resulting in errors.&lt;/P&gt;&lt;P&gt;An alternative approach is to generate a Microsoft access token using the login URL and implement error handling to automatically refresh the token when it expires. This ensures that only a valid token is used when hitting the API. You can achieve this either through an HTTP Request&amp;nbsp;in Workato or by using python code. With this approach, you should be able to resolve the token expiry issue.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:27:43 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10969#M1063</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2025-09-24T18:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10970#M1064</link>
      <description>&lt;P&gt;Hi &lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10258"&gt;@rajeshjanapati&lt;/a&gt;&amp;nbsp;- We're integrating between Epicor ECM and Dynamics BC, but the access control to BC is controlled by Entra.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The connection to BC is handled as you describe, using a client_id, client_secret, and tenant_id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for my ignorance - but when attempting to configure a connection to Dynamics BC, the only connection type offered in Workato for configuration is Cloud.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless you're describing a change to the recipe itself, in which case, could you elaborate a bit more for me?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:38:58 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10970#M1064</guid>
      <dc:creator>CallMeUp</dc:creator>
      <dc:date>2025-09-24T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10971#M1065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11539"&gt;@Bhagya_pola&lt;/a&gt;&amp;nbsp;- thank you for you input so far. Can you clarify where I would check this timing? I took a look through the connections and API settings, but I didn't see anything that seemed to line up with your description.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add some context, which I gave to &lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10258"&gt;@rajeshjanapati&lt;/a&gt;&amp;nbsp;as well, the specific apps being connected here are Epicor ECM and Dynamics BC.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:40:31 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10971#M1065</guid>
      <dc:creator>CallMeUp</dc:creator>
      <dc:date>2025-09-24T18:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10972#M1066</link>
      <description>&lt;P&gt;Have you implemented Error handling concept to retry the failed records when it is 401 error ??&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:50:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10972#M1066</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2025-09-24T18:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10974#M1068</link>
      <description>&lt;P&gt;I did try that, however it didn't seem to make any difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can confirm where the 401 is coming from conclusively? We assume the BC/Entra side, but we can't find anything in their logs to correspond to it, so we're curious if it's perhaps something within Workato that's being interpreted as a denial.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:55:31 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10974#M1068</guid>
      <dc:creator>CallMeUp</dc:creator>
      <dc:date>2025-09-24T18:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10975#M1069</link>
      <description>&lt;P&gt;Here I have completed developed with the help of Microsoft GraphQL APIs, for generating access token need to use Microsoft login URL with token url and other stuff,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need i can share you the POSTMAN collection file for better understanding.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:56:18 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10975#M1069</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2025-09-24T18:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sporadic 401 Unauthorized Response - Working Fine 97% Of The Time</title>
      <link>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10976#M1070</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Access tokens&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;are valid for 3600 seconds (1 hour).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;After that, the token expires and cannot be used anymore.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:02:12 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/sporadic-401-unauthorized-response-working-fine-97-of-the-time/m-p/10976#M1070</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-09-24T19:02:12Z</dc:date>
    </item>
  </channel>
</rss>

