> For the complete documentation index, see [llms.txt](https://docs.sportradar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportradar.com/uof/sdk/features/message-validation.md).

# Message Validation

Validation ensures that the received message contains all the required information and that the information is properly formatted (when applicable). The validation can finish with *success*, *warning*, or *failure*.

* '*<mark style="color:$success;">Success</mark>*' means that all the data associated with the feed message is present and as expected (from the point what sdk could check)<br>
* '<mark style="color:$warning;">Warning</mark>' means that some data is malformed but the message can still be safely processed (missing/additional specifiers) and produces a warning in the SDK logs. when a warning is logged, it is just to inform the user of discrepancies like market specifier mismatch between what is received in the feed message and what is expected based on the market description. In this case, the message is still fully processed and dispatched to the user code.
* *'<mark style="color:$danger;">Failure</mark>'* indicates that the message data is corrupted to the point that it cannot be safely processed. In such cases, the "unparsable message received" session event/callback is called.

**Examples of Validation Logs**

{% tabs %}
{% tab title="Java " %}

```java
15:04:55,184 [WARN ] [uf-sdk-22020-22] [uf-sdk-22020-22-amqp-t-2] [c.s.u.s.i.r.OddsFeedSessionImpl] - Problems were detected while validating message odds_change, but the message is still eligible for further processing. ProducerId:5, EventId:'sr:match:40932447'
```

{% endtab %}

{% tab title=".Net" %}

```aspnet
// validation of market specifiers (what was received in feed message and what is expected based on market description). Message is still normally dispatched to the user code.
14:54:46,260     INFO    [19]    FeedMessageValidator    Specifiers check failed. Producer=5, market[id=877], Required:inningnr,total,maxovers, Actual:matchinningnr,maxovers,total,inningnr
14:54:46,264     WARN    [19]    OddsFeedSession     Live: Problems were detected while validating message=[odds_change ProducerId=5, EventId=sr:match:40481547, GeneratedAt=1686141350193, ReceivedAt=1686142486152, Age=1135959], but the message is still eligible for further processing.
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sportradar.com/uof/sdk/features/message-validation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
