Skip to main content
Known Participant
Apr 23, 2026 11:18 AM UTC
Solved

My integration object is calling the swagger endpoint multiple times when it is being failed

My integration object  is calling the swagger endpoint multiple times when it is being failed. We have a log system in our SQL DB. When I test the endpoint from swagger, I am getting only one log but when I am I clicking on Test Request in the integration I am getting multiple logs

    stefanhelzle0001
    Brainy
    Apr 23, 2026 1:59 PM UTC

    Yeah, Appian might try a different authentication method.

    5 replies

    stefanhelzle0001
    Brainy
    Apr 23, 2026 12:09 PM UTC
    when it is being failed

    What is failing? Appian does automatic retry in certain situations.

    Known Participant
    Apr 23, 2026 12:49 PM UTC

    when the swagger endpoint returns status code as 401, then I am getting multiple logs when I click Test request from Integration

    stefanhelzle0001
    Brainy
    Apr 23, 2026 1:59 PM UTC

    Yeah, Appian might try a different authentication method.

    New Participant
    Apr 25, 2026 7:30 PM UTC

    If only one log is written in the database, the repeated calls are likely failing before they reach the logging logic. The clear solution is to check API server logs to trace all incoming requests, review Appian integration timeout/error settings, and fix the failure point causing retries. Also move the logging step to the start of the API flow so every request attempt gets captured.

    shubhama926776
    Brainy
    Apr 27, 2026 12:18 PM UTC

    Test Request internally makes multiple calls to the endpoint - one for validation/inspection and one for the actual request.
    If you're using OAuth 2.0, an additional retry happens on 401 to refresh the token and re-call.
    This is expected behavior.

    शुभम्