Hello everyone,
I have reported this issue to MikroTik Support under **ticket SUP-226958**, but have not received a reply yet. I am posting the confirmed reproduction results here in the hope that MikroTik and other users can help confirm and investigate the issue.
The issue was first observed on a physical RouterBOARD and was subsequently reproduced in independent CHR test environments. It has therefore not been observed exclusively on CHR.
## Problem
While dynamic entries in `/ip firewall address-list` are expiring naturally, the following lookup can fail:
```routeros
:local found [/ip firewall address-list find list=$targetList address=$ipAddress]
```
The error is:
```text
no such item (4)
```
**The failure occurs during the lookup itself, before any subsequent `get` or `set` operation.**
The target entry in the controlled tests had a 10-minute timeout. After the lookup failed, the same entry could still be read using its previously saved original ID, with more than seven minutes remaining. The failure therefore cannot simply be explained as an attempt to access a target whose ID became invalid after expiry.
## Tested environments
| Environment | RouterOS version | Observation |
| --- | --- | --- |
| RB5009UPr+S+, ARM64 | 7.24.5 | Native `find` failure captured during normal operation |
| CHR on QEMU | 7.24.5 and 7.25 | Reproduced in controlled tests |
| CHR on VMware | 7.24.5 | Reproduced using the same reproduction script |
These are the versions on which the behavior has actually been verified. Later releases have not yet been specifically retested for this issue.
## Key findings
1. **More than 10,000 entries are not required.**
The issue was also reproduced with 1,000 total entries, approximately 129.5 seconds after entry creation began. An earlier test at the same population did not reproduce the failure, so no deterministic population threshold has been established, and I am not claiming that every run fails.
2. **No entries were actively deleted or modified during observation.**
The tests created short-lived entries and one longer-lived target, then repeatedly queried the target. The short-lived entries expired naturally in RouterOS.
3. **The expiring entries do not have to belong to the queried list.**
In a separate 4,000-entry test, the queried list contained only one longer-lived target throughout the test. All 3,999 short-lived entries were placed in another list, yet the lookup failure still occurred.
4. **The failure can also occur without a RouterOS query script running.**
After the data preparation script had finished, an external client queried by list and address through the native API. It still received the following server response:
```text
!trap
=category=4
=message=no such item (4)
!empty
!done
```
The client consumed the complete response through `!done` before issuing a diagnostic query using the original ID. The target entry still existed.
These results indicate that the issue cannot be explained solely by script variable assignment, array handling, or a race between `find` and a subsequent `get` or `set`. However, **the exact internal RouterOS failure mechanism has not been established**. I am not presenting assumptions about cursors, indexes, or expiry cleanup internals as confirmed facts.
## Questions
- Is this a known issue, and is there a corresponding issue reference or a release containing a fix?
- Should conditional queries continue to return normally while dynamic entries expire, rather than raising this error?
- If the issue has not yet been fixed, is there an officially supported workaround that preserves lookup correctness?
Thank you for your help. I would also appreciate an update from MikroTik Support on **SUP-226958**.



