How to do this?

I have 420 arp etries with incorrect interface name. I want to change it. but how?As i know it is possible with :foreach command. script :foreach I in=[/ip arp print] do={/ip arp set $I interface=correctinterface} doesnt work

This one is working fine for me, version 3.0rc4,

:foreach i in=[/ip arp find interface=ether3] do={/ip arp set $i interface=ether1}

2.9.46
[admin@MikroTik] > :foreach i in=[/ip arp find interface=inet] do={/ip arp set $
i interface=local}
already have mapping for this IP

or

/ip arp set [/ip arp find invalid=yes] interface=local

(off the top of my head, not tested)

Sam