Share via

OpenAI Operational Error - Vector IDs Missing

ROLAND LATTERY 0 Reputation points
2026-03-04T13:58:50.44+00:00

When running the agent, I get a the error "invalid_payload required: Required properties ["vector_store_ids"] are not present"

Because of this error, I cannot get responses to my queries loaded in the chat window.

Azure OpenAI Service
Azure OpenAI Service

An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.


1 answer

Sort by: Most helpful
  1. Manas Mohanty 16,190 Reputation points Microsoft External Staff Moderator
    2026-03-20T06:49:18.2566667+00:00

    Hi ROLAND LATTERY

    Good day. Sorry for delay in follow up from support side.

    It looks like the issue might be originating on SDK.

    From SDK perspective

    You might be missing "vector store id "while running thread from file search mode.

    Please share your sample SDK if SDK

    
    file_search = FileSearchTool(vector_store_ids=[vector_store.id])
    
    
    from azure.ai.projects import AIProjectClient
    from azure.identity import DefaultAzureCredential
    from azure.ai.agents.models import ListSortOrder, FileSearchTool
    
    project = AIProjectClient(
        endpoint="https://your-foundry-resource-name.ai.azure.com/api/projects/project-name",
        credential=DefaultAzureCredential(),
    )
    
    # Upload file and create vector store
    file = project.agents.files.upload(file_path="./product_info_1.md", purpose=FilePurpose.AGENTS)
    vector_store = project.agents.vector_stores.create_and_poll(file_ids=[file.id], name="my_vectorstore")
    
    # Create file search tool and agent
    file_search = FileSearchTool(vector_store_ids=[vector_store.id])
    agent = project.agents.create_agent(
        model="gpt-4o",
        name="my-assistant",
        instructions="You are a helpful assistant and can search information from uploaded files",
        tools=file_search.definitions,
        tool_resources=file_search.resources,
    )
    
    
    
    
    # Create thread and process user message
    thread = project.agents.threads.create()
    project.agents.messages.create(thread_id=thread.id, role="user", content="Hello, what Contoso products do you know?")
    run = project.agents.runs.create_and_process(thread_id=thread.id, agent_id=agent.id)
    
    # Handle run status
    if run.status == "failed":
        print(f"Run failed: {run.last_error}")
    
    # Print thread messages
    messages = project.agents.messages.list(thread_id=thread.id, order=ListSortOrder.ASCENDING)
    for message in messages:
        if message.run_id == run.id and message.text_messages:
            print(f"{message.role}: {message.text_messages[-1].text.value}")
    
    # Cleanup resources
    project.agents.vector_stores.delete(vector_store.id)
    project.agents.files.delete(file_id=file.id)
    project.agents.delete_agent(agent.id)
    
    
    

    From Foundry UI

    Respective Vector store is corrupt or not usable. Please re-create the vector store with same files

    Follow up query

    1. SDK code if you are using SDK
    2. Model in usage
    3. Foundry type
    4. Screenshot from Foundry UI if operating from portal UI
    5. Attached Foundry New SDK and migration guide for reference too.

    Have reached via private message for support ticket creation if the issue does not resolve with above pointers.

    Thank you

    0 comments No comments

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.