This is what the script looks like......
You are missing layout context, so I'd assume you just need to add a "Go To Layout" at the beginning of the script to make sure server can make it's way to the correct layout to perform these functions.
Larry, did you check for compatibility? At first glance they appear to be all ok for Server.
Do you have the log files on this just after it's run on FMServer? what do they say?
It appears to be a compatibility issue, my partner created the script with Filemaker 15.
Just a quick note on your code validity. You should rewrite the statement:
Exit Loop If [($Count >= $$ProductCount]
change it to
Exit Loop If [(GetAsNumber($Count) >= GetAsNumber($$ProductCount)]
Remember that variables are text and the first form of the statement will be comparing text values which could have a very different result than comparing the actual numbers that they contain, depending on the actual number values.
Thanks, resolved the issue
Retrieving data ...