Share via

In Microsoft Foundry Workflow

Suraj Panker 15 Reputation points
2026-05-22T05:39:01.5133333+00:00

When i am runing workflow then i grtting below error

downstream_error{"error":"Error creating item on conversation","conversation_id":"conv_719a6b12d5ab869a00AY5r6HNCOrLq2SEp7g2dSu8GW9V8Ygjf","item_id":"","details":""}

Foundry Agent Service
Foundry Agent Service

A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model


1 answer

Sort by: Most helpful
  1. AI answer

    2026-05-22T05:39:13.93+00:00

    The error indicates that the workflow failed when trying to create an item in an existing conversation via the Foundry Conversations API.

    To troubleshoot, validate each of the following against the workflow configuration and the API contract:

    1. Verify the conversation ID
      • Ensure conversation_id (conv_719a6b12d5ab869a00AY5r6HNCOrLq2SEp7g2dSu8GW9V8Ygjf in the error) actually exists by calling:
        • GET {endpoint}/openai/v1/conversations/{conversation_id}
      • If this call does not return HTTP 200 with an OpenAI.ConversationResource, recreate the conversation first using:
        • POST {endpoint}/openai/v1/conversations
    2. Check the item creation call
      • The workflow step that adds to the conversation must call:
        • POST {endpoint}/openai/v1/conversations/{conversation_id}/items
      • Required body:
             {
               "items": [
                 { /* OpenAI.InputItem */ }
               ]
             }
        
      • Confirm:
        • items is present and is a non‑empty array.
        • Each element matches the OpenAI.InputItem schema expected by the Foundry project (correct fields, types, and item role/type).
    3. Confirm endpoint and project
      • For Foundry projects, the endpoint must be of the form:
        • https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}
      • Ensure the workflow is using the same project endpoint for:
        • Creating the conversation.
        • Creating conversation items.
        • Listing/retrieving items.
    4. Validate query parameters
      • If the workflow passes include or other query parameters, temporarily remove them and test with the minimal valid call:
        • POST {endpoint}/openai/v1/conversations/{conversation_id}/items with only the required items body.
      • For listing or debugging items, use:
        • GET {endpoint}/openai/v1/conversations/{conversation_id}/items?limit=20&order=desc
    5. Inspect API error details
      • The workflow error shows details:"", which means the workflow did not surface the underlying API error.
      • Run the same request outside the workflow (e.g., via a REST client) and check the full JSON error from the API (HTTP default response with ApiErrorResponse or generic object).
      • Use the apim-request-id header from the failed call for deeper troubleshooting if needed.
    6. Recreate the conversation if corrupted
      • If item creation consistently fails on this conversation but works on a new one:
        • Create a new conversation with POST /openai/v1/conversations.
        • Point the workflow to the new conversation_id.

    If, after these checks, item creation still fails, capture:

    • The exact HTTP request (method, URL, headers, and body) used to create the item.
    • The full API response body and status code. Then compare them against the documented Create conversation items and Get/List conversation items operations to identify any schema or parameter mismatch.

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.