357 Views    -    2 Replies


Username Post: Script Problems Server Side        (Topic#213710)
Your continued generosity and support of FMForums is greatly appreciated.
ejpvi 
apprentice
Posts: 135
ejpvi

Post Rank (AVG):
            


FMP: 10 Advanced
OS: Windows Vista
Skill: Advance



Tweet This! Tweet This Post!
03-08-10 12:07 PM - Post#351957     - Post Rank:             


I recently noticed that one of my scripts hasn't been working correctly.

If I run the script manually from a client, it works perfectly.The script involves running through a loop, which copies records to variables, then switches to a different table, creates a new record, and pastes the variables down, then switches back to the layout to continue copying until it reaches the end.

This works perfectly... except when I schedule it to run automatically on the server.

Then it usually only captures half the records, and at some point spits out the error

Error (101) Go-to-Record...

as far a I can tell, there isn't any compatibility issues with the server... but this keeps happening.

Has anyone else had this problem with scripts running improperly on the server?

Thanks!










bcooney 
consultant
Posts: 3617
bcooney

Loc: New York
Post Rank (AVG):
            


FMP: 10 Advanced
OS: Cross Platform

Member: TechNet
Skill: Advance

Certified:
     



Tweet This! Tweet This Post!
03-08-10 03:26 PM - Post#351980     - Post Rank:             
    In response to ejpvi

When you loop, FM throws an error when it runs out of records at the Go to Next (Exit at Last). However, you say it only captures half the records. That is odd. I'd look to see that you are in the right context when you set the variables (going back to the right layout and found set? and when you set field.)

The process you describe might be improved as well, but I don't know all the details. An import perhaps? Setting one key and doing lookups?











Your continued generosity and support of FMForums is greatly appreciated.
ejpvi 
apprentice
Posts: 135
ejpvi

Post Rank (AVG):
            


FMP: 10 Advanced
OS: Windows Vista
Skill: Advance



Tweet This! Tweet This Post!
03-09-10 12:57 PM - Post#352094     - Post Rank:             
    In response to bcooney

Thank you Bcooney, I can always count on you for a response.

Right before you responded... I finally found a post about Server Side Scripts always spit this error up during loops... so where I was first very concerned, then I was just confused.

Then I realized the reason the records were off, was because of the stupid proprietary system that I was copying records from. It auto-imports from our website the orders. If someone doesn't log in once a day to that system, then it continues to pull orders and assign them to the day it was last logged in (previous day).... hence why, when I was running my script in the middle of the night to pull all orders from previous day... several more orders appeared for the previous day after that, and my system was matching...

So now I just run my server-script closer to afternoon, when someone has definitely logged into the other system, and it works like a charm.

Sometimes working with Filemaker is so much easier than these proprietary systems we pull data from, sometimes you have to pull your hair out to figure out what it is they are doing and why info doesn't match.

Thanks for your time!










Icon Legend Permissions Topic Options
Print Topic

Email Topic

357 Views
Welcome Guest...
Enter your username and password to login. If you do not have a username you can register one here

Username

Password

Remember me. Help



Forgot Password...


Quick Links
Recent Posts
Active Topics
No Replies
Recent Files
Functions & Scripts
FileMaker Pro Help
FileMaker on Twitter
FileMaker Marketplace

Custom Search

Find FileMaker Developers

Don't have time to wait,
hire a developer now!

Recent Members
Welcome them to our community!
Find FileMaker Jobs

Want a new career?
Find your new job now!

Joy of Tech
Latest Joy of Tech!

Recent Topics
Recent Hot Topics
Contribute
With your generosity we can make some real magic happen!. Support your favorite online FileMaker community...
FM Forums.com


Click here...


Or a Donation of any amount.


Thanks for your support!

Active Blogs
0 Recent blogs:
People to Post Lately in this Topic
ejpvi
bcooney
FM Forums Advertisers


FusionBB™ Version 3.0 FINAL | ©2003-2010 InteractivePHP, Inc.
Execution time: 0.228 seconds.   Total Queries: 50   Zlib Compression is on.
All times are . Current time is 01:56 PM
Content ©1996-2008 Ocean West Consulting, Inc. All Rights Reserved
Ocean West Consulting, Inc. can not and will not be held responsible for any of the contents in this site.
FM Forums™ is a trademark of Ocean West Consulting, Inc an independent entity, not affiliated with FileMaker Inc.
FileMaker® is a registered trademark of FileMaker Inc.
Top