DHCP lease script -export and import


I have setup the DHCP Batcher with the a lease script on a Mikrotik. Everything is working well.

The one issue i am having is that if I do a export of Mikrotik when i try a re-import it to a new router the dhcp lease script gives an error.

Is there any way around that ?

I have scripted all other commands with variables in excel to write the configurations for all locations every things works other than dhcp lease script.

I have tried removing the global variables and hard coded them in but that does not help

Thanks in advance