> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/release-notes/runtime-release/release-5.4.2.md). Agents can also search and read this documentation through its [MCP server](https://docs.wem.io/platform/~gitbook/mcp).

# Release 5.4.2

Released on: 2026-10-30

A hotfix release that fixes the `IsNewRow()`, `RowId()` and `IsOnRow()` functions when they are used with an entity reference, and restores the Prometheus metrics that have been missing since 5.4.0.

**Expression language**

**`IsNewRow()`, `RowId()` and `IsOnRow()` work again with an entity reference as argument.** These functions are meant to take a list, but they also accept an entity reference field, for example `RowId([Product.Company])`. In recent runtime versions, such expressions failed with an error. They now work, with the following behavior:

* `IsNewRow([EntityReference])` returns `true` if the entity reference points to a new row that has not been saved yet, and `false` if it points to an existing row or is empty.
* `RowId([EntityReference])` returns the entity reference itself, as before.
* `IsOnRow([EntityReference])` returns `true` if the entity reference is not empty. This is the same as `HasValue([EntityReference])`.

#### Infrastructure & upgrade notes

**Prometheus metrics are exported again.** Since runtime 5.4.0, the `/metrics` endpoint returned an empty response, so no metrics were exported at all: not the WEM metrics such as `wem_logged_errors_total` and `wem_logged_warnings_total`, and not the standard `http_server_*` and `dotnet_*` metrics either. Because the endpoint still responded successfully, Prometheus kept reporting the targets as healthy and no "target down" alert fired. This is fixed by updating the OpenTelemetry libraries, including the Prometheus exporter, to version 1.20.1. No configuration changes are needed.

{% hint style="warning" %}
If you run runtime 5.4.0 or 5.4.1, alerts and dashboards based on these metrics have not received data since you upgraded. Data from that period cannot be recovered. After upgrading to 5.4.2, check that your alerts and dashboards show data again.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.wem.io/platform/release-notes/runtime-release/release-5.4.2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
