Cause
GDOSLEG variable was increased to 250 when more legislations were added to the system. Find command cannot handle more than 127 characters.
Solution
1. To be fixed on patch 26
Workaround
1. Run the function site by site or
2. Change the value of gobal variable GDIMLEG to 127 from 250 in Global variables function (GESAGB)