Ative address-list find and API queries fail with "no such item (4)" during natural entry expiry — SUP-226958

Thank you for your questions. I am providing the exact executed reproduction script and its corresponding results so that the

behavior can be checked directly.

Attachment: reproduce-1000.rsc

### Exact query values

The script explicitly assigns:

:local targetList "CX78SIZE_20261027_HST"

:local ipAddress "18.65.112.43"

The failing statement is:

:local found [/ip firewall address-list find list=$targetList address=$ipAddress]

This query uses the list name and address, not a previously saved internal ID.

### Test setup

The recorded run used CHR on QEMU, RouterOS 7.25.

The script creates 1,000 address-list entries:

List Entries Timeout

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━ ━━━━━━━━━━━━

CX78SIZE_20261027_HST 233 2 minutes

───────────────────────────────────────────── ───────── ────────────

CX78SIZE_20261027_HST — target 18.65.112.43 1 10 minutes

───────────────────────────────────────────── ───────── ────────────

CX78SIZE_20261027_OTHER 766 2 minutes

Before observation, the script checks the initial list counts and saves the matching target’s ID.

It then repeatedly queries by list and address for up to 300 seconds, with a 20 ms delay per completed iteration. During

observation, it does not actively delete, modify, or recreate entries. The short-lived entries expire naturally.

The saved target ID is used only to compare successful query results. It is not an input to the failing find statement.

### Recorded result

Original logs, dated 2026-10-27, UTC+08:00:

17:06:40 script,info CX78SIZE_20261027|observing|initial-hst=234|initial-other=766|seed-elapsed=00:00:00.320753781

17:08:49 script,error CX78SIZE_20261027|failed|stage=find-target|calls=2405|elapsed=00:02:09.527253938|error=no such item (4)

The failure occurred after 2,405 successful lookups, approximately 129.5 seconds after seeding began.

The logged stage was find-target, before the subsequent check-target stage. During cleanup, the target was still present with

7m50s remaining.

### Scope of the conclusion

This run records a failure at the conditional find statement, before the subsequent result check. It does not establish the

internal RouterOS cause.

I agree that internal IDs should not be assumed to remain valid indefinitely. This report does not rely on that assumption, nor

does it claim a particular cursor, index, or expiry-cleanup mechanism.

An earlier 1,000-entry run completed without the error. Therefore:

• Reproduction is not guaranteed on every run.

• No deterministic entry-count threshold has been established.

• This specific result was obtained on RouterOS 7.25; the latest release has not yet been specifically tested.

### Running the attachment

Please use a disposable lab instance. The script creates temporary configuration and may trigger address-list read failures.

Ensure that no existing entries use either of the two test list names. Paste the complete attached file into a System Script with

read,write,test permissions and run it once.

The script logs and rethrows a failure; it does not retry or automatically clean up. After collecting the results, restore the lab

snapshot or remove only the entries in the two named test lists and the test script.

Could you check whether this behavior is reproducible in your environment? The related MikroTik support ticket is SUP-226958.

reproduce-1000.rsc (3.1 KB)