> ## Documentation Index
> Fetch the complete documentation index at: https://developer.suki.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# session_in_progress on Partner API Create

> End the blocking ambient session when Partner API create returns HTTP 409 session_in_progress

Partner API create returns HTTP **409** with **`session_in_progress`** when another Suki product already has an active ambient session for the same `emr_encounter_id`. End that session, wait one second, then create again.

On Headless Web SDK, the same kind of conflict is **`sessionAlreadyExists`** with `blockingSessionId`. Use [sessionAlreadyExists remote session conflict](/documentation/troubleshooting/session-already-exists) for that path.

## Common causes

* Mobile SDK, Web SDK, or another API client left a session open for the same encounter.
* Your app retries create without ending the open session first.
* The conflict response has no blocking session id, so you must end the session from the product that still owns it.

## Fix

<Steps>
  <Step title="Catch HTTP 409">
    On create failure, check for status **409** or a `session_in_progress` message in the body.
  </Step>

  <Step title="Read the Blocking Session Id">
    Read `ambient_session_id` from the conflict response when it is present.
  </Step>

  <Step title="End That Session">
    Call [End ambient session](/api-reference/ambient-sessions/end) with `sdp_suki_token` and `sdp_provider_id`. If the body has no id, end or cancel from the product that still owns the live session.
  </Step>

  <Step title="Wait One Second, Then Retry">
    Wait **1 second**, then call create again with the same `emr_encounter_id`. See [Resolve a remote session conflict](/documentation/cookbooks/resolve-session-conflict).
  </Step>
</Steps>

## Next steps

<Icon icon="file-lines" iconType="solid" /> **[Resolve a remote session conflict](/documentation/cookbooks/resolve-session-conflict)** - End the blocker, wait one second, retry create

<Icon icon="file-lines" iconType="solid" /> **[sessionAlreadyExists remote session conflict](/documentation/troubleshooting/session-already-exists)** - Headless `cancelRemote` and `endRemote`

<Icon icon="file-lines" iconType="solid" /> **[Ambient and Dictation error messages](/api-reference/error-messages)** - Look up `session_in_progress`

<Icon icon="file-lines" iconType="solid" /> **[Share one note across products](/documentation/cookbooks/pass-emr-encounter-id)** - Shared `emr_encounter_id` across products

<Icon icon="file-lines" iconType="solid" /> **[End ambient session](/api-reference/ambient-sessions/end)** - Clear the blocking session over REST
