DNS Update script error after 7.15 upgrade

Hallo,
After upgrade ROS 4011 to 7.15.3 have a error in log with the script running in sheduler:
executing script from scheduler failed, please check it manually
Please help to find howto update script to bypass error. Thank you.

# define variables
:local list
:local comment
:local newip
:local oldip

# Loop through each entry in the address list.
:foreach i in=[/ip firewall address-list find] do={

# Get the first five characters of the list name
  :set list [:pick [/ip firewall address-list get $i list] 0 5]

# If they're 'host_', then we've got a match - process it
  :if ($list = "host_") do={
 
# Get the comment for this address list item (this is the host name to use)
    :set comment [/ip firewall address-list get $i comment]
    :set oldip [/ip firewall address-list get $i address]
    :set newip [:resolve $comment server 9.9.9.9]

# Resolve it and set the address list entry accordingly.
    :if ($newip != $oldip) do={
      /ip firewall address-list set $i address=$newip
    }
  }
}

If you add the DNS name to the address list, it does everything automatically without using a half-baked script.

7.15 is seemingly much more “strict” than previous versions.

It could be a permission/policy issue or something nearly invisible, such as a missing quote or an excess newline.

Check this:
http://forum.mikrotik.com/t/script-execution-error-dynu-com-7-13-was-fine-7-15-no-bueno/176540/1

saving the script as .rsc and then dry-run importing it might show something.

Thank you, sad but no success:

 import dns-update.rsc
Script file loaded and executed successfully

Checked policies, code for errors. Also no success%( No idea..

Tnahk you, but it reqiures to reconfigure firewall rules, take this advice if no success at all...

Why? Just use the same name for the address list…

Thank you, I'll test it..

Thank you very much, 5 min and no scripts reqiured more :smiley:

Well, you also have the advantage that the IPs update themselves when the DNS TTL expires…