Share via

Encountered error of type invalid_request_error applied to param metadata with code object_above_max_properties and message:

Suraj Panker 15 Reputation points
2026-05-14T06:09:31.15+00:00

I published an agent via Microsoft Founry. When I am accessing agent then agen give me this response

Encountered error=Encountered error of type invalid_request_error applied to param metadata with code object_above_max_properties and message: Invalid 'metadata': too many properties. Expected an object with at most 16 properties, but got an object with 17 properties instead.. If issue persists, please use following identifiers in any support request: ConversationId = a:1Y-xUAHpH1NPun155SaBZUodd_EIAMfaWFUnEQb6ubpk7QUjr5gUHazbHUJ7-qUEgAUqk1TIc8CK5pa6VrG0b0GY5UwzO8cP-ELBg59rNSEEu4yU8KCDcpRNctUyBp0U_, activityId = 1778682748880, ms-cv = azABhceehUijerixVKssSw.1.1.1.2088070590.1.1

My tech stack below

1.Azure AI Search

2.Blob

2.Microsoft Foundry

Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.


2 answers

Sort by: Most helpful
  1. Anshika Varshney 12,115 Reputation points Microsoft External Staff Moderator
    2026-05-14T07:20:34.0666667+00:00

    Hi Suraj Panker,

    The error you are seeing “invalid_request_error” usually means the request being sent to the API is not valid or missing something required. It is one of the most common errors and normally happens due to request format or configuration issues.

    Below are some things you can check step by step.

    1. Check your request format

    This error often happens when something in the request body is not correct.

    • Make sure all parameters are valid and supported
    • Remove any extra or unsupported fields
    • Ensure the JSON structure is correct

    For example, sending unsupported parameters or wrong fields will trigger this error. [bobcares.com]

    1. Use deployment name correctly

    In Azure OpenAI and Foundry, you must use the deployment name, not the model's name.

    • deployment name and model name are different
    • even small mismatch or case difference can cause failure

    This is a very common cause in many scenarios. [dredyson.com]

    1. Check endpoint and base URL

    Make sure your endpoint is correct.

    Even small mistakes in URL can result in invalid request error. [bobcares.com]

    1. Verify required parameters are present

    If a required field is missing, the API will reject the request.

    Examples:

    • missing deployment id or engine
    • missing messages or input
    • missing api version in REST calls

    For example, missing deployment id or required parameter will cause invalid request error. [community.openai.com]

    1. Check API version

    When calling REST APIs, make sure:

    • api version is included in the URL
    • it matches a supported version

    Missing api version will result in request validation failure. [learn.microsoft.com]

    1. Validate input size and limits

    Each model has limits on token size:

    • very large prompt or response can fail
    • reduce input size if needed

    Exceeded limits can also lead to invalid request error.

    1. Check API key and headers

    Make sure:

    • correct API key is used
    • headers are properly set
    • content type is application json

    Wrong headers or invalid key can also cause this issue.

    Reference

    Azure OpenAI error explanation: https://learn.microsoft.com/en-us/azure/ai-services/openai/ [devopszones.com]

    Summary

    This error is usually due to request issues, not service issues. Most common reasons are:

    • wrong deployment name
    • missing parameter
    • invalid request body
    • incorrect endpoint or API version

    If you review the above points one by one, you should be able to identify the exact cause.

    If you can share the request format or error message details, it will be easier to point out the exact issue.

    Do let me know if you have any further queries.
    Thankyou!

    Was this answer helpful?

    1 person found this answer helpful.

  2. Suraj Panker 15 Reputation points
    2026-05-21T01:18:29.8066667+00:00

    @Anshika Varshney

    Everything is correct, but the issue occurred randomly

    Was this answer helpful?

    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.