It's the import that's failing isn't it? There are sever limits on what the import and export scripts can do "server side".
This looks like something that I'd run from a robot file so that it will run from a client context.
No the import is working fine. Records are updated and new ones are added. Just records that have been deleted on the SQL side are not deleted on the Filemaker side.
Thanks for your thoughts.